aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon@quotidian.org>2010-12-08 12:43:52 +0800
committerJonathon Jongsma <jonathon@quotidian.org>2010-12-09 05:40:54 +0800
commiteb8fa514e6e3edb93be01d44ecc80608501979df (patch)
tree3e5d82ac4ff3d2f2a9a60b0913be867b0d7a244b /lib/widgets
parent4015281028a036ee859360bb7feb3a6aeb8f56cb (diff)
downloadgsoc2013-epiphany-eb8fa514e6e3edb93be01d44ecc80608501979df.tar
gsoc2013-epiphany-eb8fa514e6e3edb93be01d44ecc80608501979df.tar.gz
gsoc2013-epiphany-eb8fa514e6e3edb93be01d44ecc80608501979df.tar.bz2
gsoc2013-epiphany-eb8fa514e6e3edb93be01d44ecc80608501979df.tar.lz
gsoc2013-epiphany-eb8fa514e6e3edb93be01d44ecc80608501979df.tar.xz
gsoc2013-epiphany-eb8fa514e6e3edb93be01d44ecc80608501979df.tar.zst
gsoc2013-epiphany-eb8fa514e6e3edb93be01d44ecc80608501979df.zip
EphyLocationAction: fix potential leak
Free the lock_stock_id before setting a new one. https://bugzilla.gnome.org/show_bug.cgi?id=636742
Diffstat (limited to 'lib/widgets')
-rw-r--r--lib/widgets/ephy-location-entry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 1ac918060..5b2c9dc0d 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -1624,6 +1624,7 @@ ephy_location_entry_set_lock_stock (EphyLocationEntry *entry,
{
g_return_if_fail (EPHY_IS_LOCATION_ENTRY (entry));
+ g_free (entry->priv->lock_stock_id);
entry->priv->lock_stock_id = g_strdup (stock_id);
if (entry->priv->show_lock)