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-04-08 07:30:59 +0200
committerMichael Biebl <biebl@debian.org>2011-04-08 07:30:59 +0200
commitf75dd6fd1975146623052b843b182dc32c3fbe46 (patch)
tree05ba60b772670f038c9a1fbff940ec5d3e28d870 /libnm-glib/nm-object-cache.c
parentc980bdf58dc973dd5617aaa6f9466f9e44fcbf58 (diff)
Imported Upstream version 0.8.998 upstream/0.8.998
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;
 }