[network-manager-applet] applet-device-wifi: fix floating ref during get_secrets_dialog_response_cb()



commit 5be81c6f40528233cadc672d9a0cdd8e97cf1202
Author: Thomas Haller <thaller redhat com>
Date:   Wed Jun 3 23:12:06 2015 +0200

    applet-device-wifi: fix floating ref during get_secrets_dialog_response_cb()
    
    libnm had a bug to take over a floating ref during get_secrets_cb().
    This was fixed by 2071e4794f6cdf551d31584c17c8896d7029e3ac.
    
    Also avoid that the error can happen in applet, so that you can run
    unpatched libnm.

 src/applet-device-wifi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/applet-device-wifi.c b/src/applet-device-wifi.c
index 01854a8..9bf60fa 100644
--- a/src/applet-device-wifi.c
+++ b/src/applet-device-wifi.c
@@ -1550,6 +1550,7 @@ get_secrets_dialog_response_cb (GtkDialog *foo,
 
        /* Remove all not-relevant secrets (inner dicts) */
        secrets = remove_unwanted_secrets (secrets, keep_8021X);
+       g_variant_take_ref (secrets);
 
 done:
        applet_secrets_request_complete (req, secrets, error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]