mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1136834 - Stop leaking markers in ProfileBuffer. (r=mstange)
This commit is contained in:
parent
45ddaa6e34
commit
c3dc117590
@ -105,6 +105,12 @@ ProfileBuffer::ProfileBuffer(int aEntrySize)
|
||||
{
|
||||
}
|
||||
|
||||
ProfileBuffer::~ProfileBuffer()
|
||||
{
|
||||
mGeneration = INT_MAX;
|
||||
deleteExpiredStoredMarkers();
|
||||
}
|
||||
|
||||
// Called from signal, call only reentrant functions
|
||||
void ProfileBuffer::addTag(const ProfileEntry& aTag)
|
||||
{
|
||||
|
@ -90,7 +90,7 @@ protected:
|
||||
char* processDynamicTag(int readPos, int* tagsConsumed, char* tagBuff);
|
||||
int FindLastSampleOfThread(int aThreadId);
|
||||
|
||||
~ProfileBuffer() {}
|
||||
~ProfileBuffer();
|
||||
|
||||
public:
|
||||
// Circular buffer 'Keep One Slot Open' implementation for simplicity
|
||||
|
Loading…
Reference in New Issue
Block a user