aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2010-01-15 05:11:39 +0800
committerXan Lopez <xan@gnome.org>2010-01-15 05:13:34 +0800
commita2f561ae50fc74eed94f6eb7d9102c74caab8b49 (patch)
tree4b1062e1f81201c28b110cdcb240c0fdad761d0b /lib
parent97dae9812833055947ab77b6fde79776bbbdc245 (diff)
downloadgsoc2013-epiphany-a2f561ae50fc74eed94f6eb7d9102c74caab8b49.tar.gz
gsoc2013-epiphany-a2f561ae50fc74eed94f6eb7d9102c74caab8b49.tar.zst
gsoc2013-epiphany-a2f561ae50fc74eed94f6eb7d9102c74caab8b49.zip
Make EphyLocationEntry store a copy of the lock-stock-id
Otherwise we rely on the ordering of the property notifications to get a proper id instead of garbage (!). Bug #606995
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-location-entry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 217aa80e2..f36b3346d 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -194,6 +194,7 @@ ephy_location_entry_finalize (GObject *object)
EphyLocationEntryPrivate *priv = entry->priv;
g_free (priv->saved_text);
+ g_free (priv->lock_stock_id);
if (priv->favicon != NULL)
{
@@ -1635,7 +1636,7 @@ ephy_location_entry_set_lock_stock (EphyLocationEntry *entry,
{
g_return_if_fail (EPHY_IS_LOCATION_ENTRY (entry));
- entry->priv->lock_stock_id = (char*)stock_id;
+ entry->priv->lock_stock_id = g_strdup (stock_id);
if (entry->priv->show_lock)
gtk_entry_set_icon_from_stock (GTK_ENTRY (entry->priv->entry),