зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1119746: Fix ref-counting of bluetoothd channels, r=btian
The class |BluetoothDaemonChannel| for the bluetoothd channels supports reference counting. This patch fixes the respective variable to use |nsRefPtr| instead of |nsAutoPtr|.
This commit is contained in:
Родитель
6be32cd438
Коммит
dd06eecb9d
|
@ -131,8 +131,8 @@ protected:
|
|||
private:
|
||||
void DispatchError(BluetoothResultHandler* aRes, BluetoothStatus aStatus);
|
||||
|
||||
nsAutoPtr<BluetoothDaemonChannel> mCmdChannel;
|
||||
nsAutoPtr<BluetoothDaemonChannel> mNtfChannel;
|
||||
nsRefPtr<BluetoothDaemonChannel> mCmdChannel;
|
||||
nsRefPtr<BluetoothDaemonChannel> mNtfChannel;
|
||||
nsAutoPtr<BluetoothDaemonProtocol> mProtocol;
|
||||
|
||||
nsTArray<nsRefPtr<BluetoothResultHandler> > mResultHandlerQ;
|
||||
|
|
Загрузка…
Ссылка в новой задаче