Closed Bug 913374 Opened 11 years ago Closed 11 years ago

[B2G] [Bluetooth] Use nsRefPtr for BluetoothProfileController in profile managers

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+, firefox25 wontfix, firefox26 fixed, firefox27 fixed, b2g-v1.2 fixed)

RESOLVED FIXED
1.2 C2(Oct11)
blocking-b2g koi+
Tracking Status
firefox25 --- wontfix
firefox26 --- fixed
firefox27 --- fixed
b2g-v1.2 --- fixed

People

(Reporter: gyeh, Assigned: gyeh)

References

Details

(Whiteboard: [u=devices c=BT p=5] )

Attachments

(1 file, 1 obsolete file)

Assignee: nobody → gyeh
Eric, please review this patch. Thanks.
Attachment #810919 - Flags: review?(echou)
Target Milestone: --- → 1.2 QE1(Oct11)
Comment on attachment 810919 [details] [diff] [review] Patch 1(v1): Use nsRefPtr for BluetoothProfileController Review of attachment 810919 [details] [diff] [review]: ----------------------------------------------------------------- r=me with nits addressed. ::: dom/bluetooth/BluetoothProfileController.h @@ +60,5 @@ > public: > BluetoothProfileController(const nsAString& aDeviceAddress, > BluetoothReplyRunnable* aRunnable, > BluetoothProfileControllerCallback aCallback); > + virtual ~BluetoothProfileController(); Why virtual? ::: dom/bluetooth/linux/BluetoothDBusService.cpp @@ +176,5 @@ > static nsString sAdapterPath; > static Atomic<int32_t> sIsPairing(0); > static int sConnectedDeviceCount = 0; > static StaticAutoPtr<Monitor> sStopBluetoothMonitor; > +nsRefPtr<BluetoothProfileController> sController; StaticRefPtr should be used for this case.
Attachment #810919 - Flags: review?(echou) → review+
Good point! Thanks.
Status: NEW → RESOLVED
Closed: 11 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: