From 48981a6166208152890b6c57af19cc3c5db5837f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 23 Apr 2012 17:07:18 -0500 Subject: libnm-glib: ensure object cache is cleared when NM stops (bgo #674473) Otherwise if a client holds references to the objects (or in the JavaScript case, uses deferred garbage collection) they'll still be in the cache when NM restarts, and the old object may have the same path as some new object, which isn't good. --- libnm-glib/nm-object-cache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libnm-glib/nm-object-cache.h') diff --git a/libnm-glib/nm-object-cache.h b/libnm-glib/nm-object-cache.h index 8386591cd8..84752134bc 100644 --- a/libnm-glib/nm-object-cache.h +++ b/libnm-glib/nm-object-cache.h @@ -32,6 +32,7 @@ G_BEGIN_DECLS /* Returns referenced object from the cache */ NMObject *_nm_object_cache_get (const char *path); void _nm_object_cache_add (NMObject *object); +void _nm_object_cache_clear (NMObject *except); G_END_DECLS -- cgit v1.2.1