aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--embed/ephy-favicon-cache.c2
-rw-r--r--lib/ephy-node-db.c3
3 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3947f8f50..e178b8ae3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2003-05-21 Marco Pesenti Gritti <marco@it.gnome.org>
+
+ * embed/ephy-favicon-cache.c: (ephy_favicon_cache_save):
+
+ Do not free memory is not a good idea
+
+ * lib/ephy-node-db.c: (ephy_node_db_set_name):
+
+ Free it two times is even worst
+
2003-05-20 Marco Pesenti Gritti <marco@it.gnome.org>
* lib/ephy-dnd.c: (ephy_dnd_drag_data_get),
diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c
index 6ae56c3f9..5488a9451 100644
--- a/embed/ephy-favicon-cache.c
+++ b/embed/ephy-favicon-cache.c
@@ -254,6 +254,8 @@ ephy_favicon_cache_save (EphyFaviconCache *eb)
ephy_node_thaw (eb->priv->icons);
xmlSaveFormatFile (eb->priv->xml_file, doc, 1);
+
+ xmlFreeDoc (doc);
}
static void
diff --git a/lib/ephy-node-db.c b/lib/ephy-node-db.c
index 366b55365..86913d93c 100644
--- a/lib/ephy-node-db.c
+++ b/lib/ephy-node-db.c
@@ -81,8 +81,7 @@ ephy_node_db_set_name (EphyNodeDb *db, const char *name)
if (ephy_node_databases == NULL)
{
- ephy_node_databases = g_hash_table_new_full
- (g_str_hash, g_str_equal, g_free, NULL);
+ ephy_node_databases = g_hash_table_new (g_str_hash, g_str_equal);
}
g_hash_table_insert (ephy_node_databases, db->priv->name, db);