mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
Bug 551149 – xdgmime mem leak
2008-09-06 Matthias Clasen <mclasen@redhat.com> Bug 551149 – xdgmime mem leak * xdgmime/xdgmime.c (xdg_mime_init_from_directory): Plug a memory leak. Patch by Christian Persch svn path=/trunk/; revision=7441
This commit is contained in:
parent
166e718d03
commit
80e11e1d4f
@ -1,3 +1,10 @@
|
||||
2008-09-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Bug 551149 – xdgmime mem leak
|
||||
|
||||
* xdgmime/xdgmime.c (xdg_mime_init_from_directory): Plug
|
||||
a memory leak. Patch by Christian Persch
|
||||
|
||||
2008-09-04 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gwin32mount.c (g_win32_mount_finalize): Don't unref icon if
|
||||
|
@ -104,8 +104,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…
Reference in New Issue
Block a user