From 6fcd7d0c4754b6bcf691f8be6a3618b23a4e0b55 Mon Sep 17 00:00:00 2001 From: "eccopark@broadcom.com" Date: Fri, 10 Apr 2015 11:55:29 -0700 Subject: 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 --- bcmdhd/wifi_hal/rtt.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bcmdhd') 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; } -- cgit v1.1