Closed Bug 1073210 Opened 12 years ago Closed 11 years ago

Remove dangerous public destructor of MiscContainer

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mccr8, Assigned: anujagarwal464)

References

Details

Attachments

(1 file)

This class is defined in content/base/src/nsAttrValueInlines.h. Removing the public destructor could be tricky because sometimes this struct is refcounted and sometimes it isn't.
Attached patch bug1073210.diff — — Splinter Review
Assignee: nobody → anujagarwal464
Attachment #8496008 - Flags: feedback?(continuation)
Comment on attachment 8496008 [details] [diff] [review] bug1073210.diff Review of attachment 8496008 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/base/src/nsAttrValue.cpp @@ -282,2 @@ > if (otherCont->IsRefCounted()) { > - delete ClearMiscContainer(); I don't think this is going to work. If you look at ClearMiscContainer(), it does a bunch of stuff. This whole MiscContainer thing is very odd and may require some serious reworking.
Attachment #8496008 - Flags: feedback?(continuation) → feedback-
The background for the odd looking code is bug Bug 760331.
MiscContainer is no longer refcounted.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: