From eb8fa514e6e3edb93be01d44ecc80608501979df Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Tue, 7 Dec 2010 22:43:52 -0600 Subject: EphyLocationAction: fix potential leak Free the lock_stock_id before setting a new one. https://bugzilla.gnome.org/show_bug.cgi?id=636742 --- lib/widgets/ephy-location-entry.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/widgets') 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) -- cgit v1.2.3