ekiga r6412 - trunk/lib/gmconf



Author: jpuydt
Date: Sat Jun 28 11:57:19 2008
New Revision: 6412
URL: http://svn.gnome.org/viewvc/ekiga?rev=6412&view=rev

Log:
Implemented the shutdown for gmconf-glib too.

Modified:
   trunk/lib/gmconf/gmconf-glib.c

Modified: trunk/lib/gmconf/gmconf-glib.c
==============================================================================
--- trunk/lib/gmconf/gmconf-glib.c	(original)
+++ trunk/lib/gmconf/gmconf-glib.c	Sat Jun 28 11:57:19 2008
@@ -772,6 +772,13 @@
   return db;
 }
 
+static void
+database_destroy (DataBase *db)
+{
+  g_datalist_clear (&db->entries);
+  g_free (db);
+}
+
 static DataBase *
 database_get_default ()
 {
@@ -1268,6 +1275,16 @@
 
 }
 
+
+void
+gm_conf_shutdown ()
+{
+  /* a crash is sure to happen if anyone uses gmconf after this... */
+  DataBase *db = database_get_default ();
+  database_destroy (db);
+}
+
+
 void
 gm_conf_save ()
 {



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