aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r--calendar/gui/dialogs/event-page.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 0c52fdcdbf..54281be172 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -268,8 +268,6 @@ event_page_init (EventPage *epage)
priv->is_meeting = FALSE;
priv->sync_timezones = FALSE;
- priv->default_address = NULL;
-
priv->alarm_list_dlg_widget = NULL;
}
@@ -322,6 +320,9 @@ event_page_finalize (GObject *object)
priv->alarm_list_dlg_widget = NULL;
+ g_free (priv->default_address);
+ priv->default_address = NULL;
+
g_free (priv);
epage->priv = NULL;
@@ -587,7 +588,8 @@ clear_widgets (EventPage *epage)
/* Categories */
e_dialog_editable_set (priv->categories, NULL);
- gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (priv->organizer)->entry), priv->default_address);
+ if (priv->default_address)
+ gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (priv->organizer)->entry), priv->default_address);
}
static gboolean
@@ -3180,7 +3182,8 @@ event_page_select_organizer (EventPage *epage, const char *backend_address)
priv->default_address = full;
} else if (a == def_account && !priv->default_address)
priv->default_address = full;
-
+ else
+ g_free (full);
}
g_object_unref(it);