mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-20 04:22:11 +02: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>
|
2008-09-04 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* gwin32mount.c (g_win32_mount_finalize): Don't unref icon if
|
* gwin32mount.c (g_win32_mount_finalize): Don't unref icon if
|
||||||
|
@ -105,7 +105,10 @@ xdg_dir_time_list_add (char *file_name,
|
|||||||
for (list = dir_time_list; list; list = list->next)
|
for (list = dir_time_list; list; list = list->next)
|
||||||
{
|
{
|
||||||
if (strcmp (list->directory_name, file_name) == 0)
|
if (strcmp (list->directory_name, file_name) == 0)
|
||||||
return;
|
{
|
||||||
|
free (file_name);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
list = calloc (1, sizeof (XdgDirTimeList));
|
list = calloc (1, sizeof (XdgDirTimeList));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user