aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/window-commands.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 513954f48..a43d16330 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2004-09-22 Christian Persch <chpe@cvs.gnome.org>
+ * src/window-commands.c: (window_cmd_help_about):
+
+ Fix a mem leak.
+
+2004-09-22 Christian Persch <chpe@cvs.gnome.org>
+
* src/bookmarks/ephy-topic-action.c: (drag_motion_cb):
Fix a mem leak.
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
{