NetworkManager r3641 - trunk/system-settings/plugins/keyfile
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3641 - trunk/system-settings/plugins/keyfile
- Date: Thu, 8 May 2008 01:55:21 +0100 (BST)
Author: dcbw
Date: Thu May 8 00:55:21 2008
New Revision: 3641
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3641&view=rev
Log:
Don't complain if system settings service exits before connections are read
Modified:
trunk/system-settings/plugins/keyfile/plugin.c
Modified: trunk/system-settings/plugins/keyfile/plugin.c
==============================================================================
--- trunk/system-settings/plugins/keyfile/plugin.c (original)
+++ trunk/system-settings/plugins/keyfile/plugin.c Thu May 8 00:55:21 2008
@@ -43,10 +43,11 @@
NMKeyfileConnection *connection;
connection = nm_keyfile_connection_new (filename);
- if (connection)
+ if (connection) {
g_hash_table_insert (priv->hash,
(gpointer) nm_keyfile_connection_get_filename (connection),
g_object_ref (connection));
+ }
return connection;
}
@@ -221,7 +222,8 @@
g_object_unref (priv->monitor);
}
- g_hash_table_destroy (priv->hash);
+ if (priv->hash)
+ g_hash_table_destroy (priv->hash);
G_OBJECT_CLASS (sc_plugin_keyfile_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]