[network-manager-applet] wwan: make sure MM1 object signals are disconnected (rh #1083727)



commit c83217caca83f60029a1dff2d2dc719be1efa907
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 6790993..4e9f205 100644
--- a/src/applet-device-broadband.c
+++ b/src/applet-device-broadband.c
@@ -952,8 +952,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]