mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1065122 - Count ProfilerBacktrace ctor/dtor. r=trivial
--HG-- extra : rebase_source : 2bfe5cd0e57136e6841e0829be882d0a8f3cd3e8
This commit is contained in:
parent
5ab2b0c28e
commit
69f454387f
@ -12,11 +12,13 @@
|
||||
ProfilerBacktrace::ProfilerBacktrace(SyncProfile* aProfile)
|
||||
: mProfile(aProfile)
|
||||
{
|
||||
MOZ_COUNT_CTOR(ProfilerBacktrace);
|
||||
MOZ_ASSERT(aProfile);
|
||||
}
|
||||
|
||||
ProfilerBacktrace::~ProfilerBacktrace()
|
||||
{
|
||||
MOZ_COUNT_DTOR(ProfilerBacktrace);
|
||||
if (mProfile->ShouldDestroy()) {
|
||||
delete mProfile;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user