From 265fea16e72ba03d6ad4eab4d51e68c943e9b36a Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 27 Feb 2003 23:02:46 +0000 Subject: guard this so we don't try to free priv multiple times. 2003-02-27 Chris Toshok * e-url-entry.c (destroy): guard this so we don't try to free priv multiple times. svn path=/trunk/; revision=20089 --- widgets/misc/ChangeLog | 5 +++++ widgets/misc/e-url-entry.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'widgets') diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 28c1381fee..89f1a95847 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,8 @@ +2003-02-27 Chris Toshok + + * e-url-entry.c (destroy): guard this so we don't try to free priv + multiple times. + 2003-02-25 Dan Winship * e-map.c (e_map_destroy): Use diff --git a/widgets/misc/e-url-entry.c b/widgets/misc/e-url-entry.c index 25b58d2e1d..eacf593137 100644 --- a/widgets/misc/e-url-entry.c +++ b/widgets/misc/e-url-entry.c @@ -122,9 +122,10 @@ destroy (GtkObject *obj) EUrlEntryPrivate *priv; url_entry = E_URL_ENTRY (obj); - priv = url_entry->priv; - - g_free (priv); + if (url_entry->priv) { + g_free (url_entry->priv); + url_entry->priv = NULL; + } } -- cgit