[gnome-control-center] network: Fix possible double-free



commit 91db9ddb4153e63ff2076a57e8b239889514a5e8
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Aug 26 13:20:25 2011 +0100

    network: Fix possible double-free
    
    operator_name_safe is attached to an object, and freed
    when the object goes away, so don't free it here.

 panels/network/cc-network-panel.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index a494f48..69485ee 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -439,7 +439,6 @@ panel_get_registration_info_cb (GObject *source_object, GAsyncResult *res, gpoin
                                 g_free);
 
         g_free (operator_name);
-        g_free (operator_name_safe);
         g_free (operator_code);
         g_variant_unref (result);
 }



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