mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-12 02:42:48 +00:00
Free get_types_table internal hashtable on exit
This commit is contained in:
parent
5b075cfa66
commit
21e5e7d389
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue