From 305c9d1169ccc964f0c9443053cc470b7611d83a Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 4 Aug 2004 13:52:46 +0000 Subject: =?UTF-8?q?Fix=20mem=20leak;=20noticed=20by=20Jean-Fran=C3=A7ois?= =?UTF-8?q?=20Rameau.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2004-08-04 Christian Persch * src/window-commands.c: (editor_can_open_uri): Fix mem leak; noticed by Jean-François Rameau. --- ChangeLog | 6 ++++++ src/window-commands.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 736fab075..f58667b3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-08-04 Christian Persch + + * src/window-commands.c: (editor_can_open_uri): + + Fix mem leak; noticed by Jean-François Rameau. + 2004-08-04 Christian Persch * src/window-commands.c: (window_cmd_view_page_source): diff --git a/src/window-commands.c b/src/window-commands.c index f0d8c2d92..aac37cfe9 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -728,6 +728,11 @@ editor_can_open_uri (char *address) gnome_vfs_uri_unref (uri); } + if (app) + { + gnome_vfs_mime_application_free (app); + } + return result; } -- cgit v1.2.3