diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-09-08 10:55:29 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-09-08 10:55:29 +0200 |
commit | 75298a3ded74e42b047f95f0746ea3dca8e0a6b7 (patch) | |
tree | 6c7564aa6e15622d801c9c279115e741683620d7 /eel | |
parent | b698cf1932da077f07d99966a4c61568a1ae081e (diff) | |
download | nautilus-75298a3ded74e42b047f95f0746ea3dca8e0a6b7.tar.gz |
Print leaked unique eel_ref_str:s at exit
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-string.c | 5 |
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); |