Closed Bug 389765 Opened 17 years ago Closed 17 years ago

nsXPCWrappedJSClass::DebugDump leaks an xptiInterfaceInfo

Categories

(Core :: XPConnect, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: dbaron, Assigned: dbaron)

Details

(Keywords: memory-leak)

Attachments

(1 file)

Attached patch patchSplinter Review
This is a leak in debugging code, reliably invoked for those of us who define DEBUG_xpc_hacker.

nsXPCWrappedJSClass::DebugDump leaks the |parent| variable.  Trivial patch attached.
Attachment #274095 - Flags: superreview?(jst)
Attachment #274095 - Flags: review?(jst)
Attachment #274095 - Flags: superreview?(jst)
Attachment #274095 - Flags: superreview+
Attachment #274095 - Flags: review?(jst)
Attachment #274095 - Flags: review+
Comment on attachment 274095 [details] [diff] [review]
patch

This fixes a trivial leak in DEBUG-only code.
Attachment #274095 - Flags: approval1.9?
Comment on attachment 274095 [details] [diff] [review]
patch

Never mind.  Approval probably isn't needed for DEBUG-only code.
Attachment #274095 - Flags: approval1.9?
Checked in to trunk.
Status: ASSIGNED → 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

Created:
Updated:
Size: