[network-manager-netbook/MplPanelClient: 36/44] Don't free GErrors in NM callbacks
- From: Tambet Ingo <tambeti src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-netbook/MplPanelClient: 36/44] Don't free GErrors in NM callbacks
- Date: Tue, 10 Nov 2009 14:12:44 +0000 (UTC)
commit 256e04d5abe4aeabb85a4c4463f481cd3dee6688
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 7984cd3..ddc41ac 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]