Bug 1136834 - Stop leaking markers in ProfileBuffer. (r=mstange)

This commit is contained in:
Shu-yu Guo 2015-03-05 16:23:17 -08:00
parent 45ddaa6e34
commit c3dc117590
2 changed files with 7 additions and 1 deletions

View File

@ -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)
{

View File

@ -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