From 4583132b823a56e203f6d94f26c57dcf8c4df87a Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 22 Sep 2004 19:14:56 +0000 Subject: Fix a mem leak. 2004-09-22 Christian Persch * src/window-commands.c: (window_cmd_help_about): Fix a mem leak. --- ChangeLog | 6 ++++++ src/window-commands.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 513954f48..a43d16330 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-09-22 Christian Persch + + * src/window-commands.c: (window_cmd_help_about): + + Fix a mem leak. + 2004-09-22 Christian Persch * src/bookmarks/ephy-topic-action.c: (drag_motion_cb): 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 { -- cgit v1.2.3