[lasem/lasem-0-4] lsmdebug: fix hash table creation.



commit 6ad9b23badaf37fd9cd38e0b7172800681f370fa
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun Jan 6 20:26:22 2013 +0100

    lsmdebug: fix hash table creation.
    
    We have to free the value, not the key.

 src/lsmdebug.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/lsmdebug.c b/src/lsmdebug.c
index 320a291..4286bda 100644
--- a/src/lsmdebug.c
+++ b/src/lsmdebug.c
@@ -77,8 +77,7 @@ lsm_debug_initialize (const char *debug_var)
 	if (lsm_debug_categories != NULL)
 		return;
 
-	lsm_debug_categories = g_hash_table_new_full (g_str_hash, g_str_equal,
-						      (GDestroyNotify) lsm_debug_category_free, NULL);
+	lsm_debug_categories = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, (GDestroyNotify) lsm_debug_category_free);
 
 	if (debug_var != NULL) {
 		char **categories;



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