Closed Bug 758890 Opened 12 years ago Closed 12 years ago

TableTicker isn't destroyed when profiler is stopped

Categories

(Core :: Gecko Profiler, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: mstange, Assigned: ehsan.akhgari)

Details

(Keywords: memory-leak)

Attachments

(1 file)

http://hg.mozilla.org/mozilla-central/annotate/cff5b4470690/tools/profiler/TableTicker.cpp#l783

void mozilla_sampler_stop()
{
  TableTicker *t = tlsTicker.get();
  if (!t) {
    return;
  }

  t->Stop();
  tlsTicker.set(NULL);
}

I think there's a "delete t;" missing here.

Maybe this is the state we leave behind which causes bug 737328.
Summary: TableTicker isn't destroyed when profile is stopped → TableTicker isn't destroyed when profiler is stopped
Keywords: mlk
Attached patch Patch (v1)Splinter Review
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #628943 - Flags: review?(bgirard)
I don't see how this would help bug 737328.
Attachment #628943 - Flags: review?(bgirard) → review+
(In reply to Benoit Girard (:BenWa) from comment #2)
> I don't see how this would help bug 737328.

It won't, unless you believe in magic.  ;-)
https://hg.mozilla.org/mozilla-central/rev/2b3fc9837fea
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: