mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-29 03:34:16 +00:00
Print leaked unique eel_ref_str:s at exit
This commit is contained in:
parent
b698cf1932
commit
75298a3ded
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue