[network-manager-applet/nma-0-9-8] wwan: make sure MM1 object signals are disconnected (rh #1083727)
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/nma-0-9-8] wwan: make sure MM1 object signals are disconnected (rh #1083727)
- Date: Fri, 25 Apr 2014 15:17:28 +0000 (UTC)
commit 155e61bfae190a699365d65253947a7ca9dc7e42
Author: Dan Williams <dcbw redhat com>
Date: Fri Apr 4 14:56:51 2014 -0500
wwan: make sure MM1 object signals are disconnected (rh #1083727)
Otherwise if something else holds a reference to info->mm_modem, we
could end up triggering signal handlers after we've disposed of
'info'.
src/applet-device-broadband.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/applet-device-broadband.c b/src/applet-device-broadband.c
index 61b66a8..f4b64ff 100644
--- a/src/applet-device-broadband.c
+++ b/src/applet-device-broadband.c
@@ -978,8 +978,10 @@ broadband_device_info_free (BroadbandDeviceInfo *info)
if (info->mm_sim)
g_object_unref (info->mm_sim);
- if (info->mm_modem)
+ if (info->mm_modem) {
+ g_signal_handlers_disconnect_matched (info->mm_modem, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL,
info);
g_object_unref (info->mm_modem);
+ }
if (info->mm_object)
g_object_unref (info->mm_object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]