[epiphany] EphyLocationAction: fix potential leak



commit eb8fa514e6e3edb93be01d44ecc80608501979df
Author: Jonathon Jongsma <jonathon quotidian org>
Date:   Tue Dec 7 22:43:52 2010 -0600

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 1ac9180..5b2c9dc 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]