aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--embed/ephy-favicon-cache.c8
2 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 15bc1fc06..1732d217b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
2003-07-04 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/ephy-favicon-cache.c: (favicon_download_completed_cb):
+
+ Remove the persist object from the hash table before emitting the
+ changed signal. Fixes bug 116673.
+
+2003-07-04 Christian Persch <chpe@cvs.gnome.org>
* data/epiphany.schemas.in:
diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c
index f5a7f8c77..7f0c31271 100644
--- a/embed/ephy-favicon-cache.c
+++ b/embed/ephy-favicon-cache.c
@@ -388,13 +388,15 @@ favicon_download_completed_cb (EphyEmbedPersist *persist,
{
char *url;
- url = g_object_get_data (G_OBJECT (persist), "url");
+ url = g_strdup ((char *) g_object_get_data (G_OBJECT (persist), "url"));
g_return_if_fail (url != NULL);
- g_signal_emit (G_OBJECT (cache), ephy_favicon_cache_signals[CHANGED], 0, url);
-
g_hash_table_remove (cache->priv->downloads_hash, url);
g_object_unref (persist);
+
+ g_signal_emit (G_OBJECT (cache), ephy_favicon_cache_signals[CHANGED], 0, url);
+
+ g_free (url);
}
static void