aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-07-04 22:41:23 +0800
committerChristian Persch <chpe@src.gnome.org>2003-07-04 22:41:23 +0800
commit04232d1c20ac0fe729168ab1294e22e9e136b731 (patch)
tree86b2c630f37bfe936ddd3e1319e9e37249495d1e /embed
parentb88852bb0214f4aec9edc4eb12cf159fe0033601 (diff)
downloadgsoc2013-epiphany-04232d1c20ac0fe729168ab1294e22e9e136b731.tar
gsoc2013-epiphany-04232d1c20ac0fe729168ab1294e22e9e136b731.tar.gz
gsoc2013-epiphany-04232d1c20ac0fe729168ab1294e22e9e136b731.tar.bz2
gsoc2013-epiphany-04232d1c20ac0fe729168ab1294e22e9e136b731.tar.lz
gsoc2013-epiphany-04232d1c20ac0fe729168ab1294e22e9e136b731.tar.xz
gsoc2013-epiphany-04232d1c20ac0fe729168ab1294e22e9e136b731.tar.zst
gsoc2013-epiphany-04232d1c20ac0fe729168ab1294e22e9e136b731.zip
Remove the persist object from the hash table before emitting the changed
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.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-favicon-cache.c8
1 files changed, 5 insertions, 3 deletions
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