aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-09-23 03:14:56 +0800
committerChristian Persch <chpe@src.gnome.org>2004-09-23 03:14:56 +0800
commit4583132b823a56e203f6d94f26c57dcf8c4df87a (patch)
treed3a014909efaa5979ed675701f05c3aca6b43ac2 /src
parent38a400ad4f2119289400add5aebae8ac5285d5fd (diff)
downloadgsoc2013-epiphany-4583132b823a56e203f6d94f26c57dcf8c4df87a.tar
gsoc2013-epiphany-4583132b823a56e203f6d94f26c57dcf8c4df87a.tar.gz
gsoc2013-epiphany-4583132b823a56e203f6d94f26c57dcf8c4df87a.tar.bz2
gsoc2013-epiphany-4583132b823a56e203f6d94f26c57dcf8c4df87a.tar.lz
gsoc2013-epiphany-4583132b823a56e203f6d94f26c57dcf8c4df87a.tar.xz
gsoc2013-epiphany-4583132b823a56e203f6d94f26c57dcf8c4df87a.tar.zst
gsoc2013-epiphany-4583132b823a56e203f6d94f26c57dcf8c4df87a.zip
Fix a mem leak.
2004-09-22 Christian Persch <chpe@cvs.gnome.org> * src/window-commands.c: (window_cmd_help_about): Fix a mem leak.
Diffstat (limited to 'src')
-rw-r--r--src/window-commands.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index b76158d7d..01e5a4e52 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -960,7 +960,7 @@ window_cmd_help_about (GtkAction *action,
icon_theme = gtk_icon_theme_get_default ();
icon_info = gtk_icon_theme_lookup_icon (icon_theme, "web-browser", -1, 0);
- if (icon_info)
+ if (icon_info != NULL)
{
icon_path = gtk_icon_info_get_filename (icon_info);
@@ -968,6 +968,8 @@ window_cmd_help_about (GtkAction *action,
{
icon = gdk_pixbuf_new_from_file (icon_path, NULL);
}
+
+ gtk_icon_info_free (icon_info);
}
else
{