summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-directory.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-03-07 21:04:51 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2012-03-07 21:04:51 -0500
commit0d46b0620b3b120cde310cb2319c309d8f3e3b82 (patch)
treecd6e0ceb576e8fff977c8145fffd6e823a79720c /libnautilus-private/nautilus-directory.c
parentb9c51fd4eb84a9f52ee4be1bf183fc516984130b (diff)
downloadnautilus-0d46b0620b3b120cde310cb2319c309d8f3e3b82.tar.gz
all: remove eel_g_hash_table_new_free_at_exit()
Especially when references can be owned by non-resident modules, this is just too dangerous. https://bugzilla.gnome.org/show_bug.cgi?id=670989
Diffstat (limited to 'libnautilus-private/nautilus-directory.c')
-rw-r--r--libnautilus-private/nautilus-directory.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/libnautilus-private/nautilus-directory.c b/libnautilus-private/nautilus-directory.c
index 9038b4901..f69ece7b4 100644
--- a/libnautilus-private/nautilus-directory.c
+++ b/libnautilus-private/nautilus-directory.c
@@ -319,16 +319,6 @@ add_preferences_callbacks (void)
NULL);
}
-static void
-print_key_directory (gpointer key, gpointer value, gpointer callback_data)
-{
- char *uri;
-
- uri = g_file_get_uri (G_FILE (key));
- g_print ("--> %s\n", uri);
- g_free (uri);
-}
-
/**
* nautilus_directory_get_by_uri:
* @uri: URI of directory to get.
@@ -345,10 +335,7 @@ nautilus_directory_get_internal (GFile *location, gboolean create)
/* Create the hash table first time through. */
if (directories == NULL) {
- directories = eel_g_hash_table_new_free_at_exit
- (g_file_hash, (GCompareFunc)g_file_equal, print_key_directory,
- "nautilus-directory.c: directories");
-
+ directories = g_hash_table_new (g_file_hash, (GCompareFunc) g_file_equal);
add_preferences_callbacks ();
}