aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-08-20 17:45:44 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-08-20 17:45:44 +0800
commit8b5bd65751016d6ef8ba2ed2fd9b5fb5e7748624 (patch)
treebb56bd6de9e7b11d6cb7e03464d8b6650f2ec575 /calendar/gui/dialogs
parente3bc9c823718c769c9667b9f707fdabf0d8f0697 (diff)
downloadgsoc2013-evolution-8b5bd65751016d6ef8ba2ed2fd9b5fb5e7748624.tar.gz
gsoc2013-evolution-8b5bd65751016d6ef8ba2ed2fd9b5fb5e7748624.tar.zst
gsoc2013-evolution-8b5bd65751016d6ef8ba2ed2fd9b5fb5e7748624.zip
2007-08-20 mcrha Fix for bug #262226
svn path=/trunk/; revision=34043
Diffstat (limited to 'calendar/gui/dialogs')
-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);