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.
This commit is contained in:
Thomas Haller 2015-03-13 21:31:46 +01:00
parent ee4543bd6e
commit 5e962bef87

View file

@ -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;