Closed
Bug 798035
Opened 12 years ago
Closed 12 years ago
[b2g-bluetooth] Bluetooth Manager classes double-inherit refcounting semantics, crash
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: qdot, Assigned: qdot)
References
Details
Attachments
(2 files)
(deleted),
patch
|
gyeh
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
gyeh
:
review+
|
Details | Diff | Splinter Review |
Due to BluetoothHfp/ScoManager inheriting from both nsISupports and RefCounted<>, we get double releases when they die.
Assignee | ||
Updated•12 years ago
|
blocking-basecamp: --- → ?
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #668201 -
Flags: review?(gyeh)
Assignee | ||
Comment 2•12 years ago
|
||
Get() never worked in this configuration, and we have no need for an SCOCommandThread.
Attachment #668203 -
Flags: review?(gyeh)
Comment 3•12 years ago
|
||
Comment on attachment 668203 [details] [diff] [review]
Patch 2 (v1) - General SCO class cleanup
Review of attachment 668203 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/bluetooth/BluetoothScoManager.cpp
@@ -100,3 @@
> BluetoothScoManager::Cleanup()
> {
> // Shut down the command thread if it still exists.
Also remove the comment here.
Attachment #668203 -
Flags: review?(gyeh) → review+
Comment 4•12 years ago
|
||
Comment on attachment 668201 [details] [diff] [review]
Patch 1 (v1) - Make observers internal friend classes of managers
Review of attachment 668201 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good :)
::: dom/bluetooth/BluetoothScoManager.cpp
@@ +66,5 @@
> + const PRUnichar* aData)
> +{
> + if (!strcmp(aTopic, NS_XPCOM_SHUTDOWN_OBSERVER_ID)) {
> + return gBluetoothScoManager->HandleShutdown();
> + }
We probably need to check gBluetootScoManager before calling its function.
MOZ_ASSERT(gBluetoothScoManager);
Attachment #668201 -
Flags: review?(gyeh) → review+
Updated•12 years ago
|
blocking-basecamp: ? → +
Assignee | ||
Comment 5•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a170f959971e
https://hg.mozilla.org/integration/mozilla-inbound/rev/b7731c744c7f
Target Milestone: --- → mozilla18
Comment 6•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a170f959971e
https://hg.mozilla.org/mozilla-central/rev/b7731c744c7f
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•