* [PATCH] hfpmodem: Fix g_at_chat leak
@ 2011-08-04 12:48 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2011-08-05 22:03 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau @ 2011-08-04 12:48 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]
---
drivers/hfpmodem/call-volume.c | 1 +
drivers/hfpmodem/network-registration.c | 1 +
drivers/hfpmodem/voicecall.c | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/hfpmodem/call-volume.c b/drivers/hfpmodem/call-volume.c
index df83657..c0c4869 100644
--- a/drivers/hfpmodem/call-volume.c
+++ b/drivers/hfpmodem/call-volume.c
@@ -206,6 +206,7 @@ static void hfp_call_volume_remove(struct ofono_call_volume *cv)
ofono_call_volume_set_data(cv, NULL);
+ g_at_chat_unref(vd->chat);
g_free(vd);
}
diff --git a/drivers/hfpmodem/network-registration.c b/drivers/hfpmodem/network-registration.c
index 7d26424..6703885 100644
--- a/drivers/hfpmodem/network-registration.c
+++ b/drivers/hfpmodem/network-registration.c
@@ -331,6 +331,7 @@ static void hfp_netreg_remove(struct ofono_netreg *netreg)
ofono_netreg_set_data(netreg, NULL);
+ g_at_chat_unref(nd->chat);
g_free(nd);
}
diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index 3c49870..9903db0 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -1166,6 +1166,7 @@ static void hfp_voicecall_remove(struct ofono_voicecall *vc)
ofono_voicecall_set_data(vc, NULL);
+ g_at_chat_unref(vd->chat);
g_free(vd);
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-05 22:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-04 12:48 [PATCH] hfpmodem: Fix g_at_chat leak =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2011-08-05 22:03 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.