week-view: fix active and current date handling

The active date is the visible date, while the current date
is today. We shouldn't confuse those two.
This commit is contained in:
Georges Basile Stavracas Neto
2016-12-08 14:18:37 -02:00
parent 6fc89fb626
commit 74ac2d83ee
2 changed files with 4 additions and 6 deletions
+1
View File
@@ -857,6 +857,7 @@ gcal_week_header_finalize (GObject *object)
GcalWeekHeader *self = GCAL_WEEK_HEADER (object);
gint i;
g_clear_pointer (&self->active_date, g_free);
g_clear_pointer (&self->current_date, g_free);
for (i = 0; i < 7; i++)