aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/goto.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/goto.c')
-rw-r--r--calendar/gui/goto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/gui/goto.c b/calendar/gui/goto.c
index 86dc92bb3a..16c1eecc9f 100644
--- a/calendar/gui/goto.c
+++ b/calendar/gui/goto.c
@@ -184,11 +184,13 @@ goto_dialog (GnomeCalendar *gcal)
dlg->xml = glade_xml_new (EVOLUTION_GLADEDIR "/goto-dialog.glade", NULL);
if (!dlg->xml) {
g_message ("goto_dialog(): Could not load the Glade XML file!");
+ g_free (dlg);
return;
}
if (!get_widgets (dlg)) {
g_message ("goto_dialog(): Could not find all widgets in the XML file!");
+ g_free (dlg);
return;
}
dlg->gcal = gcal;