views: Free GDateTimes with g_date_time_unref()

This commit is contained in:
Georges Basile Stavracas Neto
2020-04-01 23:10:01 -03:00
parent 93542e8853
commit e4debb9912
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -509,7 +509,7 @@ gcal_week_view_finalize (GObject *object)
self = GCAL_WEEK_VIEW (object);
g_clear_pointer (&self->date, g_free);
g_clear_pointer (&self->date, g_date_time_unref);
g_clear_object (&self->context);
+3 -4
View File
@@ -1825,10 +1825,9 @@ gcal_year_view_finalize (GObject *object)
g_free (year_view->navigator_grid);
g_free (year_view->selected_data);
g_free (year_view->start_selected_date);
g_free (year_view->end_selected_date);
g_clear_pointer (&year_view->date, g_free);
g_clear_pointer (&year_view->start_selected_date, g_date_time_unref);
g_clear_pointer (&year_view->end_selected_date, g_date_time_unref);
g_clear_pointer (&year_view->date, g_date_time_unref);
g_clear_object (&year_view->calendar_settings);