summaryrefslogtreecommitdiffstats
path: root/bcmdhd
diff options
context:
space:
mode:
authorxin He <xinhe@google.com>2015-04-11 14:04:31 +0000
committerAndroid Partner Code Review <android-gerrit-partner@google.com>2015-04-11 14:04:32 +0000
commitf0f7cc2fb61adb75ccfd5c98ad57ec83996bdeb2 (patch)
tree44dfddef67cc47ca610cd350bafb0ae7f4e379fd /bcmdhd
parent026c12a13d5b8736aaff4786e0f691531334fcba (diff)
parent6fcd7d0c4754b6bcf691f8be6a3618b23a4e0b55 (diff)
downloadhardware_broadcom_wlan-f0f7cc2fb61adb75ccfd5c98ad57ec83996bdeb2.zip
hardware_broadcom_wlan-f0f7cc2fb61adb75ccfd5c98ad57ec83996bdeb2.tar.gz
hardware_broadcom_wlan-f0f7cc2fb61adb75ccfd5c98ad57ec83996bdeb2.tar.bz2
Merge "clean up the object of RTTCommand class" into m-wireless-dev
Diffstat (limited to 'bcmdhd')
-rw-r--r--bcmdhd/wifi_hal/rtt.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/bcmdhd/wifi_hal/rtt.cpp b/bcmdhd/wifi_hal/rtt.cpp
index d6e7ca4..9812fe5 100644
--- a/bcmdhd/wifi_hal/rtt.cpp
+++ b/bcmdhd/wifi_hal/rtt.cpp
@@ -466,6 +466,9 @@ public:
rttResults[i] = NULL;
}
totalCnt = currentIdx = 0;
+ WifiCommand *cmd = wifi_unregister_cmd(wifiHandle(), id());
+ if (cmd)
+ cmd->releaseRef();
}
return NL_SKIP;
}