Closed Bug 58966 Opened 25 years ago Closed 17 years ago

one-time leaks in nsLoggingService

Categories

(SeaMonkey :: General, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dbaron, Assigned: cathleennscp)

References

Details

(Keywords: memory-leak, Whiteboard: [tind-mlk])

Attachments

(1 obsolete file)

nsLoggingService (and related code?) leak, once per session, an nsObjectHashtable, an nsFileLogEventSink, a PRMonitor, and one nsLog object per log. (The last of the 4 classes was removed from the leak stats so that this wouldn't show up.)
Keywords: mlk
Whiteboard: [tind-mlk]
Attached patch patch (obsolete) — Splinter Review
Couldn't this leak be easily fixed by adding the necessary stuff to the nsLoggingService::Release method. I do not right undertstand how to free the mDefaultSink, but I believe it should be freed.
Why would deleting stuff in |Release| make sense? I thought the problem here was that we're assigning things to statics and never doing anything about them later on.
I'm adopting all of warren's leaks.
Assignee: warren → dprice
Assignee: dprice → asa
Component: XPCOM → Browser-General
QA Contact: kandrot → doronr
-> cathleen for a new home
adding cathleen so she'll know that you want her to find a new home for this bug.
Blocks: 92580
No longer blocks: 92580
See bug 94480 (and the patch to remove this code).
->cathleen
Assignee: asa → cathleen
Product: Browser → Seamonkey
Depends on: 107510
Comment on attachment 23717 [details] [diff] [review] patch (In reply to comment #7) > See bug 94480 (and the patch to remove this code). This file was removed by bug 107510 :-)
Attachment #23717 - Attachment is obsolete: true
R.Fixed. David, reopen if I missed something.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: