diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-25 21:53:48 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-25 21:53:48 +0800 |
commit | 8873db168de0809230e68187cd6bd92880a818fb (patch) | |
tree | 79fddcaf086e4aa15924e780893ec4c513fc0376 | |
parent | 82b1ad8936e032380ef6fb816067359b8cc4a368 (diff) | |
download | gsoc2013-epiphany-8873db168de0809230e68187cd6bd92880a818fb.tar gsoc2013-epiphany-8873db168de0809230e68187cd6bd92880a818fb.tar.gz gsoc2013-epiphany-8873db168de0809230e68187cd6bd92880a818fb.tar.bz2 gsoc2013-epiphany-8873db168de0809230e68187cd6bd92880a818fb.tar.lz gsoc2013-epiphany-8873db168de0809230e68187cd6bd92880a818fb.tar.xz gsoc2013-epiphany-8873db168de0809230e68187cd6bd92880a818fb.tar.zst gsoc2013-epiphany-8873db168de0809230e68187cd6bd92880a818fb.zip |
Fix mem leaks.
2004-01-25 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-stock-icons.c: (ephy_stock_icons_init):
Fix mem leaks.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/ephy-stock-icons.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -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)); |