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:
Matthias Clasen 2008-09-07 03:28:56 +00:00 committed by Matthias Clasen
parent 166e718d03
commit 80e11e1d4f
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -105,8 +105,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)
{
free (file_name);
return;
}
}
list = calloc (1, sizeof (XdgDirTimeList));
list->checked = XDG_CHECKED_UNCHECKED;