diff options
Diffstat (limited to 'libnm-glib/nm-object-cache.c')
-rw-r--r-- | libnm-glib/nm-object-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-glib/nm-object-cache.c b/libnm-glib/nm-object-cache.c index fdbca00f5..c43b42733 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; } |