[network-manager-netbook/MplPanelClient] Don't free GErrors in NM callbacks



commit 4e0827e5834466a7a2d22e8ad8353ac107bbec64
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Sep 30 11:49:38 2009 +0100

    Don't free GErrors in NM callbacks
    
    As we don't own the error. Remove unused variable.

 src/nmn-ethernet-item.c |    2 --
 src/nmn-network-item.c  |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/nmn-ethernet-item.c b/src/nmn-ethernet-item.c
index 7cbe042..c6edfbd 100644
--- a/src/nmn-ethernet-item.c
+++ b/src/nmn-ethernet-item.c
@@ -75,7 +75,6 @@ update_cb (NMSettingsConnectionInterface *connection,
 
 	if (error != NULL) {
 		g_warning ("Updating auto-connect for ethernet failed: %s", error->message);
-		g_error_free (error);
 		return;
 	}
 	s_con = NM_SETTING_CONNECTION (connection);
@@ -90,7 +89,6 @@ static gboolean
 update_autoconnect (NmnNetworkItem *item, gboolean connect_automatically)
 {
     NMSettingsConnectionInterface *connection;
-    NMConnection *wrapped;
     NMSettingConnection *s_con;
     GError *error = NULL;
 
diff --git a/src/nmn-network-item.c b/src/nmn-network-item.c
index f3430ae..addb2b3 100644
--- a/src/nmn-network-item.c
+++ b/src/nmn-network-item.c
@@ -351,7 +351,6 @@ update_cb (NMSettingsConnectionInterface *connection,
 
     if (error != NULL) {
     	    g_warning ("Updating settings failed: %s", error->message);
-    	    g_error_free (error);
     	    return;
     }
 



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