mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
Bug 551149 – xdgmime mem leak
* xdgmime/xdgmime.c (xdg_mime_init_from_directory): Plug a memory leak. Patch by Christian Persch svn path=/branches/glib-2-16/; revision=7468
This commit is contained in:
parent
bf271c2530
commit
327d4e7242
@ -1,3 +1,12 @@
|
||||
2008-09-11 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from trunk
|
||||
|
||||
Bug 551149 – xdgmime mem leak
|
||||
|
||||
* xdgmime/xdgmime.c (xdg_mime_init_from_directory): Plug
|
||||
a memory leak. Patch by Christian Persch
|
||||
|
||||
2008-09-11 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from trunk
|
||||
|
@ -101,8 +101,11 @@ xdg_dir_time_list_add (char *file_name,
|
||||
|
||||
for (list = dir_time_list; list; list = list->next)
|
||||
{
|
||||
if (strcmp (list->directory_name, file_name) == 0)
|
||||
return;
|
||||
if (strcmp (list->directory_name, file_name) == 0)
|
||||
{
|
||||
free (file_name);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
list = calloc (1, sizeof (XdgDirTimeList));
|
||||
|
Loading…
x
Reference in New Issue
Block a user