summary refs log tree commit diff
path: root/libnm-glib/nm-object-cache.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-05-04 21:35:41 +0200
committerMichael Biebl <biebl@debian.org>2011-05-04 21:35:41 +0200
commit9f806e97a24bba61417ae312fcc0da40914266fb (patch)
tree4a25723414ceac11b4cba0558aa16f6f4b459f4b /libnm-glib/nm-object-cache.c
parent8baa1aca8dfd35e3190d7d5655eb83b5b901e263 (diff)
Imported Upstream version 0.8.999 upstream/0.8.999
Diffstat (limited to 'libnm-glib/nm-object-cache.c')
-rw-r--r--libnm-glib/nm-object-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-glib/nm-object-cache.c b/libnm-glib/nm-object-cache.c
index fdbca00f..c43b4273 100644
--- a/libnm-glib/nm-object-cache.c
+++ b/libnm-glib/nm-object-cache.c
@@ -67,6 +67,6 @@ _nm_object_cache_get (const char *path)
 
 	_init_cache ();
 	object = g_hash_table_lookup (cache, path);
-	return object;
+	return object ? g_object_ref (object) : NULL;
 }