aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/window-commands.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 736fab075..f58667b3b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2004-08-04 Christian Persch <chpe@cvs.gnome.org>
+ * src/window-commands.c: (editor_can_open_uri):
+
+ Fix mem leak; noticed by Jean-François Rameau.
+
+2004-08-04 Christian Persch <chpe@cvs.gnome.org>
+
* src/window-commands.c: (window_cmd_view_page_source):
Fix mem leak; noticed by Jean-François Rameau.
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;
}