Free get_types_table internal hashtable on exit

This commit is contained in:
Alexander Larsson 2009-09-08 11:02:55 +02:00
parent 5b075cfa66
commit 21e5e7d389

View file

@ -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) {