aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-url-entry.c
diff options
context:
space:
mode:
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;
+ }
}