glib r7441 - in trunk/gio: . xdgmime
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7441 - in trunk/gio: . xdgmime
- Date: Sun, 7 Sep 2008 03:28:56 +0000 (UTC)
Author: matthiasc
Date: Sun Sep 7 03:28:56 2008
New Revision: 7441
URL: http://svn.gnome.org/viewvc/glib?rev=7441&view=rev
Log:
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
Modified:
trunk/gio/ChangeLog
trunk/gio/xdgmime/xdgmime.c
Modified: trunk/gio/xdgmime/xdgmime.c
==============================================================================
--- trunk/gio/xdgmime/xdgmime.c (original)
+++ trunk/gio/xdgmime/xdgmime.c Sun Sep 7 03:28:56 2008
@@ -104,8 +104,11 @@
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]