aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-08-04 21:52:46 +0800
committerChristian Persch <chpe@src.gnome.org>2004-08-04 21:52:46 +0800
commit305c9d1169ccc964f0c9443053cc470b7611d83a (patch)
tree383021f860effa1f7bdeca978ebe85d712323fcd
parentcf8ecc215f7ea1edaa9e22902b2e62f3f9a4bb48 (diff)
downloadgsoc2013-epiphany-305c9d1169ccc964f0c9443053cc470b7611d83a.tar
gsoc2013-epiphany-305c9d1169ccc964f0c9443053cc470b7611d83a.tar.gz
gsoc2013-epiphany-305c9d1169ccc964f0c9443053cc470b7611d83a.tar.bz2
gsoc2013-epiphany-305c9d1169ccc964f0c9443053cc470b7611d83a.tar.lz
gsoc2013-epiphany-305c9d1169ccc964f0c9443053cc470b7611d83a.tar.xz
gsoc2013-epiphany-305c9d1169ccc964f0c9443053cc470b7611d83a.tar.zst
gsoc2013-epiphany-305c9d1169ccc964f0c9443053cc470b7611d83a.zip
Fix mem leak; noticed by Jean-François Rameau.
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.
-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;
}