* [PATCH 1/3] Fix: Set data to NULL in hfpmodem drivers
@ 2009-11-12 16:31 Zhenhua Zhang
2009-11-12 17:24 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Zhenhua Zhang @ 2009-11-12 16:31 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1090 bytes --]
Hi,
The patch is to set data to NULL in hfpmodem drivers.
---
drivers/hfpmodem/network-registration.c | 2 ++
drivers/hfpmodem/voicecall.c | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/hfpmodem/network-registration.c
b/drivers/hfpmodem/network-registration.c
index 13e8628..702b7a9 100644
--- a/drivers/hfpmodem/network-registration.c
+++ b/drivers/hfpmodem/network-registration.c
@@ -333,6 +333,8 @@ static void hfp_netreg_remove(struct ofono_netreg
*netreg)
{
struct netreg_data *nd = ofono_netreg_get_data(netreg);
+ ofono_netreg_set_data(netreg, NULL);
+
g_free(nd);
}
diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index 8847985..9ba72e4 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -514,6 +514,9 @@ static void hfp_voicecall_remove(struct
ofono_voicecall *vc)
g_slist_foreach(vd->calls, (GFunc) g_free, NULL);
g_slist_free(vd->calls);
+
+ ofono_voicecall_set_data(vc, NULL);
+
g_free(vd);
}
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/3] Fix: Set data to NULL in hfpmodem drivers
2009-11-12 16:31 [PATCH 1/3] Fix: Set data to NULL in hfpmodem drivers Zhenhua Zhang
@ 2009-11-12 17:24 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2009-11-12 17:24 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 72 bytes --]
Hi Zhenhua,
Patch has been applied. Thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-12 17:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-12 16:31 [PATCH 1/3] Fix: Set data to NULL in hfpmodem drivers Zhenhua Zhang
2009-11-12 17:24 ` 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.