Skip to contentSkip to conversation

telephony-maemo6: fix not cleaning up active calls list on exit

PATCH New Luiz Augusto von Dentz 1 participant 1 message Feb 16, 2011 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 telephony-maemo6: fix not cleaning up active calls list on exit

From: Luiz Augusto von Dentz <[email protected]>

This can cause problem if the adapter is reset in the middle of a call the indicators won't be update properly.

---
 audio/telephony-maemo6.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
audio/telephony-maemo6.c +3 -0
index dfa06d9..bf1e0c4 100644
@@ -2028,6 +2028,9 @@ void telephony_exit(void)
 	g_free(last_dialed_number);
 	last_dialed_number = NULL;
 
+	g_slist_free(active_calls);
+	active_calls = NULL;
+
 	g_slist_foreach(calls, (GFunc) csd_call_free, NULL);
 	g_slist_free(calls);
 	calls = NULL;
Signature · 1 line
1.7.1