Don't return freed memory (#505815, Mikael Hermansson)

2007-12-26  Matthias Clasen  <mclasen@redhat.com> 

        * gcontenttype.c (g_content_types_get_registered): Don't return
        freed memory (#505815, Mikael Hermansson)



svn path=/trunk/; revision=6205
This commit is contained in:
Matthias Clasen 2007-12-27 04:14:47 +00:00 committed by Matthias Clasen
parent 4ec183a164
commit a06dd20aef
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-12-26 Matthias Clasen <mclasen@redhat.com>
* gcontenttype.c (g_content_types_get_registered): Don't return
freed memory (#505815, Mikael Hermansson)
2007-12-25 Paolo Borelli <pborelli@katamail.com>
* glocalfileinfo.c (set_info_from_stat): fix typo in the ifdef

View File

@ -854,7 +854,7 @@ g_content_types_get_registered (void)
int i;
GList *l;
mimetypes = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
mimetypes = g_hash_table_new (g_str_hash, g_str_equal);
enumerate_mimetypes_dir (g_get_user_data_dir (), mimetypes);
dirs = g_get_system_data_dirs ();