Bug 1126720: Fix ref-counting of bluetoothd channels (under bluetooth2/), 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 patch is based on bug 1119746, patch [03]
This commit is contained in:
Thomas Zimmermann 2015-02-12 10:12:07 +01:00
parent 06f8c062df
commit 53a7df99fb

View File

@ -122,8 +122,8 @@ protected:
private: private:
void DispatchError(BluetoothResultHandler* aRes, BluetoothStatus aStatus); void DispatchError(BluetoothResultHandler* aRes, BluetoothStatus aStatus);
nsAutoPtr<BluetoothDaemonChannel> mCmdChannel; nsRefPtr<BluetoothDaemonChannel> mCmdChannel;
nsAutoPtr<BluetoothDaemonChannel> mNtfChannel; nsRefPtr<BluetoothDaemonChannel> mNtfChannel;
nsAutoPtr<BluetoothDaemonProtocol> mProtocol; nsAutoPtr<BluetoothDaemonProtocol> mProtocol;
nsTArray<nsRefPtr<BluetoothResultHandler> > mResultHandlerQ; nsTArray<nsRefPtr<BluetoothResultHandler> > mResultHandlerQ;