diff options
author | eccopark@broadcom.com <eccopark@broadcom.com> | 2015-04-10 11:55:29 -0700 |
---|---|---|
committer | eccopark@broadcom.com <eccopark@broadcom.com> | 2015-04-10 11:55:29 -0700 |
commit | 6fcd7d0c4754b6bcf691f8be6a3618b23a4e0b55 (patch) | |
tree | 62f8c67b0c45dfe5dbb026dba648d204cc8a7c4a /bcmdhd | |
parent | abe2d4864c8f15e4eb6d7dab64b159e47a605c21 (diff) | |
download | hardware_broadcom_wlan-6fcd7d0c4754b6bcf691f8be6a3618b23a4e0b55.zip hardware_broadcom_wlan-6fcd7d0c4754b6bcf691f8be6a3618b23a4e0b55.tar.gz hardware_broadcom_wlan-6fcd7d0c4754b6bcf691f8be6a3618b23a4e0b55.tar.bz2 |
clean up the object of RTTCommand class
1) The object will be deleted after RTT results get received completely.
Change-Id: I77f08496fa5789e55d069b334b0cf3bc6d0ca847
Signed-off-by: eccopark@broadcom.com <eccopark@broadcom.com>
Diffstat (limited to 'bcmdhd')
-rw-r--r-- | bcmdhd/wifi_hal/rtt.cpp | 3 |
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; } |