[dconf/wip/reorg: 494/523] sources: don't leak bus name and object path



commit b54ca7b473dc9d2a8fe230342a71f55e9de1fde2
Author: Ryan Lortie <desrt desrt ca>
Date:   Fri Jul 6 14:07:50 2012 -0400

    sources: don't leak bus name and object path
    
    On finalize, we weren't freeing these properly.

 engine/dconf-engine-source.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/engine/dconf-engine-source.c b/engine/dconf-engine-source.c
index 45ec455..bf080da 100644
--- a/engine/dconf-engine-source.c
+++ b/engine/dconf-engine-source.c
@@ -34,6 +34,8 @@ dconf_engine_source_free (DConfEngineSource *source)
     gvdb_table_unref (source->locks);
 
   source->vtable->finalize (source);
+  g_free (source->bus_name);
+  g_free (source->object_path);
   g_free (source->name);
   g_free (source);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]