* [PATCH] telephony-maemo6: fix not cleaning up active calls list on exit
@ 2011-02-16 14:37 Luiz Augusto von Dentz
0 siblings, 0 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2011-02-16 14:37 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
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(-)
diff --git a/audio/telephony-maemo6.c b/audio/telephony-maemo6.c
index dfa06d9..bf1e0c4 100644
--- a/audio/telephony-maemo6.c
+++ b/audio/telephony-maemo6.c
@@ -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;
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] telephony-maemo6: fix not cleaning up active calls list on exit
@ 2011-02-16 13:05 Luiz Augusto von Dentz
2011-02-16 15:01 ` Johan Hedberg
0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2011-02-16 13:05 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
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(-)
diff --git a/audio/telephony-maemo6.c b/audio/telephony-maemo6.c
index dfa06d9..bf1e0c4 100644
--- a/audio/telephony-maemo6.c
+++ b/audio/telephony-maemo6.c
@@ -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;
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-16 15:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-16 14:37 [PATCH] telephony-maemo6: fix not cleaning up active calls list on exit Luiz Augusto von Dentz
-- strict thread matches above, loose matches on Subject: below --
2011-02-16 13:05 Luiz Augusto von Dentz
2011-02-16 15:01 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox