aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
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 /src/window-commands.c
parentcf8ecc215f7ea1edaa9e22902b2e62f3f9a4bb48 (diff)
downloadgsoc2013-epiphany-305c9d1169ccc964f0c9443053cc470b7611d83a.tar.gz
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.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c5
1 files changed, 5 insertions, 0 deletions
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;
}