summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-03-13 21:31:46 +0100
committerThomas Haller <thaller@redhat.com>2015-03-20 11:43:29 +0100
commit5e962bef878682c3821c1527758adbae4ee3e721 (patch)
treee50ee04702d6b415df39e4df8acc70f6b3d31926
parentee4543bd6e4958e93d19a878f8403c4afa398c6e (diff)
downloadNetworkManager-5e962bef878682c3821c1527758adbae4ee3e721.tar.gz
main: don't unref config instance at end of main()
config is a singleton implemented using NM_DEFINE_SINGLETON_DESTRUCTOR(). No need to unref it manually.
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index d76bbffa3b..0e9e923dcd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -215,7 +215,7 @@ main (int argc, char *argv[])
gboolean success, show_version = FALSE;
NMManager *manager = NULL;
gs_unref_object NMSettings *settings = NULL;
- gs_unref_object NMConfig *config = NULL;
+ NMConfig *config;
GError *error = NULL;
gboolean wrote_pidfile = FALSE;
char *bad_domains = NULL;