mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-05 00:43:40 +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:
committed by
Matthias Clasen
parent
166e718d03
commit
80e11e1d4f
@@ -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));
|
||||
|
Reference in New Issue
Block a user