From f5edeb8c0f480977c141fd4c7930ca9fdd4959af Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 3 Aug 2008 18:49:12 +0000 Subject: [PATCH] =?utf8?q?Bug=20546079=20=E2=80=93=20leak=20in=20xdgmime?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-08-03 Carlos Garcia Campos Bug 546079 – leak in xdgmime * xdgmime/xdgmime.c (xdg_mime_shutdown): Fix memory leak. svn path=/trunk/; revision=7292 --- gio/ChangeLog | 6 ++++++ gio/xdgmime/xdgmime.c | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/gio/ChangeLog b/gio/ChangeLog index cd14c55b..5588f364 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,9 @@ +2008-08-03 Carlos Garcia Campos + + Bug 546079 – leak in xdgmime + + * xdgmime/xdgmime.c (xdg_mime_shutdown): Fix memory leak. + 2008-08-03 Tor Lillqvist * win32/gwin32directorymonitor.h diff --git a/gio/xdgmime/xdgmime.c b/gio/xdgmime/xdgmime.c index 0fe00a43..2be0f5f9 100644 --- a/gio/xdgmime/xdgmime.c +++ b/gio/xdgmime/xdgmime.c @@ -627,6 +627,18 @@ xdg_mime_shutdown (void) _xdg_mime_parent_list_free (parent_list); parent_list = NULL; } + + if (icon_list) + { + _xdg_mime_icon_list_free (icon_list); + icon_list = NULL; + } + + if (generic_icon_list) + { + _xdg_mime_icon_list_free (generic_icon_list); + generic_icon_list = NULL; + } if (_caches) { -- 2.34.1