Fix leak of date_time_end

It's replaced by this line:

  date_time_end = all_day ? g_date_time_add_days (date_time_end, -1) : date_time_end;

so we need to be able to free that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/550>
This commit is contained in:
Federico Mena Quintero
2025-08-27 19:59:58 -03:00
committed by Georges Basile Stavracas Neto
parent ba69d04465
commit 1cfb58e3c4
+2 -2
View File
@@ -447,7 +447,7 @@ gcal_schedule_section_set_event (GcalEventEditorSection *section,
{ {
GcalScheduleSection *self; GcalScheduleSection *self;
GDateTime* date_time_start = NULL; GDateTime* date_time_start = NULL;
GDateTime* date_time_end = NULL; g_autoptr (GDateTime) date_time_end = NULL;
GcalRecurrenceLimitType limit_type; GcalRecurrenceLimitType limit_type;
GcalRecurrenceFrequency frequency; GcalRecurrenceFrequency frequency;
gboolean all_day; gboolean all_day;
@@ -476,7 +476,7 @@ gcal_schedule_section_set_event (GcalEventEditorSection *section,
/* retrieve start and end date-times */ /* retrieve start and end date-times */
date_time_start = values->date_start; date_time_start = values->date_start;
date_time_end = values->date_end; date_time_end = g_date_time_ref (values->date_end);
/* /*
* This is subtracting what has been added in action_button_clicked (). * This is subtracting what has been added in action_button_clicked ().
* See bug 769300. * See bug 769300.