Closed
Bug 829525
Opened 12 years ago
Closed 12 years ago
nsMainThreadPtrHolder needs a virtual destructor
Categories
(Core :: XPCOM, defect)
Tracking
()
People
(Reporter: mikeh, Assigned: mikeh)
References
Details
Attachments
(1 obsolete file)
clang on mozilla-b2g18 is complaining about it:
In file included from /builds/slave/m-b2g18-osx64-g/build/dom/camera/CameraControlImpl.cpp:8:
In file included from /builds/slave/m-b2g18-osx64-g/build/dom/camera/CameraControlImpl.h:9:
../../dist/include/nsProxyRelease.h:157:1: error: delete called on 'nsMainThreadPtrHolder<nsICameraErrorCallback>' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
NS_IMPL_THREADSAFE_RELEASE(nsMainThreadPtrHolder<T>)
^
../../dist/include/nsISupportsImpl.h:1397:5: note: expanded from macro 'NS_IMPL_THREADSAFE_RELEASE'
delete (this); \
^
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
blocking-basecamp: --- → ?
Updated•12 years ago
|
Attachment #700979 -
Flags: review?(doug.turner) → review+
Updated•12 years ago
|
blocking-basecamp: ? → +
Assignee | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
(In reply to Mike Habicher from comment #0)
> clang on mozilla-b2g18 is complaining about it:
>
> In file included from
> /builds/slave/m-b2g18-osx64-g/build/dom/camera/CameraControlImpl.cpp:8:
> In file included from
> /builds/slave/m-b2g18-osx64-g/build/dom/camera/CameraControlImpl.h:9:
> ../../dist/include/nsProxyRelease.h:157:1: error: delete called on
> 'nsMainThreadPtrHolder<nsICameraErrorCallback>' that has virtual functions
> but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
Wasn't this fixed by bug 808146 (for the delete-non-vertual-dtor flag)?
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to neil@parkwaycc.co.uk from comment #3)
>
> Wasn't this fixed by bug 808146 (for the delete-non-vertual-dtor flag)?
The b2g18 tree seems to be missing that. Thanks for the pointer--I'll land it.
Assignee | ||
Comment 5•12 years ago
|
||
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/abf0ab34d7c7 due to not being needed because of the fix in bug 808146. Pushed that patch to b2g18 instead as https://hg.mozilla.org/releases/mozilla-b2g18/rev/ea47019235c0
Assignee | ||
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
status-b2g18:
--- → fixed
Assignee | ||
Comment 6•12 years ago
|
||
Comment on attachment 700979 [details] [diff] [review]
nsMainThreadPtrHolder needs a virtual destructor
Patch not required, marking obselete.
Attachment #700979 -
Attachment is obsolete: true
Comment 7•12 years ago
|
||
Lest the adventure continue much more, take a look at the various other patches that were in the aforementioned queue for this code:
https://github.com/bholley/mozilla-central/commit/5d90cb0ec26c48215f32bc9bbbfc7a71e36efc22
https://github.com/bholley/mozilla-central/commit/d80a1fdf92d317834ed2158994f4bd23e524877b
https://github.com/bholley/mozilla-central/commit/208b16b7ee1e9efa0980ecce320f7fa460645f40
https://github.com/bholley/mozilla-central/commit/5b3f7699dc3886d0f84ac0f0531f2431e2872b72
Updated•12 years ago
|
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Target Milestone: --- → mozilla21
Updated•12 years ago
|
Target Milestone: mozilla21 → mozilla19
You need to log in
before you can comment on or make changes to this bug.
Description
•