Closed
Bug 1047757
Opened 11 years ago
Closed 11 years ago
BluetoothService is leaked
Categories
(Firefox OS Graveyard :: Bluetooth, defect, P2)
Firefox OS Graveyard
Bluetooth
Tracking
(Not tracked)
VERIFIED
FIXED
2.1 S2 (15aug)
People
(Reporter: khuey, Assigned: yrliou)
References
Details
(Keywords: memory-leak, perf, Whiteboard: [p=1][c=memory u= p= s=])
Attachments
(1 file, 1 obsolete file)
We store BluetoothService in a StaticRefPtr which is never cleared, so we leak. The obvious thing to do here is use ClearOnShutdown on the StaticRefPtr.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → joliu
Assignee | ||
Updated•11 years ago
|
Whiteboard: [p=1]
Target Milestone: --- → 2.1 S2 (15aug)
Assignee | ||
Comment 1•11 years ago
|
||
As Kyle mentioned, we should call ClearOnShutdown(sBluetoothService) for nulling sBluetoothService on shutdown.
Patch Summary:
* Call ClearOnShutdown(sBluetoothService) after creating the instance.
* Use sBluetoothService directly in BluetoothService::Get()
Hi Shawn,
Could you help on reviewing this patch? Thanks.
Attachment #8468221 -
Flags: review?(shuang)
Attachment #8468221 -
Flags: review?(shuang) → review+
Updated•11 years ago
|
Priority: -- → P2
Assignee | ||
Comment 2•11 years ago
|
||
Thanks for your time, Shawn.
Attachment #8468221 -
Attachment is obsolete: true
Assignee | ||
Comment 3•11 years ago
|
||
Keywords: checkin-needed
Comment 4•11 years ago
|
||
Keywords: checkin-needed
Comment 5•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 6•11 years ago
|
||
Thanks Jocelyn!
Reporter | ||
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•