aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/task-editor.c8
-rw-r--r--calendar/gui/dialogs/task-page.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c
index 891520c95d..202bd5dee1 100644
--- a/calendar/gui/dialogs/task-editor.c
+++ b/calendar/gui/dialogs/task-editor.c
@@ -346,12 +346,14 @@ task_editor_finalize (GObject *object)
te = TASK_EDITOR (object);
priv = te->priv;
- g_object_unref((priv->task_page));
- g_object_unref((priv->task_details_page));
- g_object_unref((priv->meet_page));
+ g_object_unref (priv->task_page);
+ g_object_unref (priv->task_details_page);
+ g_object_unref (priv->meet_page);
g_object_unref (priv->model);
+ g_free (priv);
+
if (G_OBJECT_CLASS (parent_class)->finalize)
(* G_OBJECT_CLASS (parent_class)->finalize) (object);
}
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index c83473ef07..b68adba47d 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -464,7 +464,7 @@ task_page_fill_component (CompEditorPage *page, CalComponent *comp)
cal_component_set_description_list (comp, &l);
}
- if (!str)
+ if (str)
g_free (str);
/* Dates */