[nautilus] Free get_types_table internal hashtable on exit
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus] Free get_types_table internal hashtable on exit
- Date: Tue, 8 Sep 2009 09:04:10 +0000 (UTC)
commit 21e5e7d3898764a8d493dede40606a9b9e6aa7aa
Author: Alexander Larsson <alexl redhat com>
Date: Tue Sep 8 11:02:55 2009 +0200
Free get_types_table internal hashtable on exit
libnautilus-private/nautilus-thumbnails.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-thumbnails.c b/libnautilus-private/nautilus-thumbnails.c
index 53b7525..382f8c0 100644
--- a/libnautilus-private/nautilus-thumbnails.c
+++ b/libnautilus-private/nautilus-thumbnails.c
@@ -35,6 +35,7 @@
#include <eel/eel-gdk-pixbuf-extensions.h>
#include <eel/eel-graphic-effects.h>
#include <eel/eel-string.h>
+#include <eel/eel-debug.h>
#include <eel/eel-vfs-extensions.h>
#include <gtk/gtk.h>
#include <errno.h>
@@ -744,7 +745,11 @@ get_types_table (void)
int i;
if (image_mime_types == NULL) {
- image_mime_types = g_hash_table_new (g_str_hash, g_str_equal);
+ image_mime_types =
+ g_hash_table_new_full (g_str_hash, g_str_equal,
+ g_free, NULL);
+ eel_debug_call_at_shutdown_with_data ((GFreeFunc)g_hash_table_destroy,
+ image_mime_types);
format_list = gdk_pixbuf_get_formats ();
for (l = format_list; l; l = l->next) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]