aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib/ephy-stock-icons.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f31897877..7908f82c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2004-01-25 Christian Persch <chpe@cvs.gnome.org>
+ * lib/ephy-stock-icons.c: (ephy_stock_icons_init):
+
+ Fix mem leaks.
+
+2004-01-25 Christian Persch <chpe@cvs.gnome.org>
+
* lib/ephy-file-helpers.c: (ephy_file_tmp_dir),
(ephy_file_tmp_filename):
diff --git a/lib/ephy-stock-icons.c b/lib/ephy-stock-icons.c
index 21d4b170c..06c77e3bb 100644
--- a/lib/ephy-stock-icons.c
+++ b/lib/ephy-stock-icons.c
@@ -71,7 +71,7 @@ ephy_stock_icons_init (void)
gtk_icon_set_add_source (icon_set, icon_source);
gtk_icon_factory_add (factory, items[i], icon_set);
gtk_icon_set_unref (icon_set);
- g_free (icon_source);
+ gtk_icon_source_free (icon_source);
}
for (i = 0; i < (int) G_N_ELEMENTS (icon_theme_items); i++)
@@ -82,7 +82,7 @@ ephy_stock_icons_init (void)
gtk_icon_set_add_source (icon_set, icon_source);
gtk_icon_factory_add (factory, icon_theme_items[i], icon_set);
gtk_icon_set_unref (icon_set);
- g_free (icon_source);
+ gtk_icon_source_free (icon_source);
}
g_object_unref (G_OBJECT (factory));