aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-url-entry.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-02-28 07:02:46 +0800
committerChris Toshok <toshok@src.gnome.org>2003-02-28 07:02:46 +0800
commit265fea16e72ba03d6ad4eab4d51e68c943e9b36a (patch)
treedfb8f5e430950f9d6bc960063aae143e4a520cd1 /widgets/misc/e-url-entry.c
parent1de4b21c42204c218b86ca95f368b66d579d2962 (diff)
downloadgsoc2013-evolution-265fea16e72ba03d6ad4eab4d51e68c943e9b36a.tar.gz
gsoc2013-evolution-265fea16e72ba03d6ad4eab4d51e68c943e9b36a.tar.zst
gsoc2013-evolution-265fea16e72ba03d6ad4eab4d51e68c943e9b36a.zip
guard this so we don't try to free priv multiple times.
2003-02-27 Chris Toshok <toshok@ximian.com> * e-url-entry.c (destroy): guard this so we don't try to free priv multiple times. svn path=/trunk/; revision=20089
Diffstat (limited to 'widgets/misc/e-url-entry.c')
-rw-r--r--widgets/misc/e-url-entry.c7
1 files changed, 4 insertions, 3 deletions
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;
+ }
}