summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-09-08 10:55:29 +0200
committerAlexander Larsson <alexl@redhat.com>2009-09-08 10:55:29 +0200
commit75298a3ded74e42b047f95f0746ea3dca8e0a6b7 (patch)
tree6c7564aa6e15622d801c9c279115e741683620d7 /eel
parentb698cf1932da077f07d99966a4c61568a1ae081e (diff)
downloadnautilus-75298a3ded74e42b047f95f0746ea3dca8e0a6b7.tar.gz
Print leaked unique eel_ref_str:s at exit
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-string.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/eel/eel-string.c b/eel/eel-string.c
index 15dc0b703..c23eb9380 100644
--- a/eel/eel-string.c
+++ b/eel/eel-string.c
@@ -29,6 +29,7 @@
#include <locale.h>
#include <stdlib.h>
#include <string.h>
+#include <eel-glib-extensions.h>
#if !defined (EEL_OMIT_SELF_CHECK)
#include "eel-lib-self-check-functions.h"
@@ -852,7 +853,9 @@ eel_ref_str_get_unique (const char *string)
G_LOCK (unique_ref_strs);
if (unique_ref_strs == NULL) {
- unique_ref_strs = g_hash_table_new (g_str_hash, g_str_equal);
+ unique_ref_strs =
+ eel_g_hash_table_new_free_at_exit (g_str_hash, g_str_equal,
+ "unique eel_ref_str");
}
res = g_hash_table_lookup (unique_ref_strs, string);