summary refs log tree commit diff
path: root/src/nm-session-monitor-null.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2014-07-06 02:16:10 +0200
committerMichael Biebl <biebl@debian.org>2014-07-06 02:16:10 +0200
commit33491bc4279481db8ae47213e34a6d695a0e8830 (patch)
tree097d2b0fdff3fae6885381ae5e57a182cd8cbbba /src/nm-session-monitor-null.c
parent59c3714a494c3b3765657c0551ad82842d98a7d2 (diff)
Imported Upstream version 0.9.10.0 upstream/0.9.10.0
Diffstat (limited to 'src/nm-session-monitor-null.c')
-rw-r--r--src/nm-session-monitor-null.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nm-session-monitor-null.c b/src/nm-session-monitor-null.c
index beabcf21..5d8ecaaf 100644
--- a/src/nm-session-monitor-null.c
+++ b/src/nm-session-monitor-null.c
@@ -81,11 +81,8 @@ nm_session_monitor_get (void)
 {
 	static NMSessionMonitor *singleton = NULL;
 
-	if (singleton)
-		return g_object_ref (singleton);
-
-	singleton = NM_SESSION_MONITOR (g_object_new (NM_TYPE_SESSION_MONITOR, NULL));
-	g_assert (singleton);
+	if (!singleton)
+		singleton = g_object_new (NM_TYPE_SESSION_MONITOR, NULL);
 	return singleton;
 }