[gnome-calendar/gbsneto/recurring-event-editing-fixes: 12/18] event-editor/schedule: Trivial autoptr cleanup
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gbsneto/recurring-event-editing-fixes: 12/18] event-editor/schedule: Trivial autoptr cleanup
- Date: Mon, 17 Oct 2022 19:43:04 +0000 (UTC)
commit 923db34c150cae00cb66fbcc67aa2127ed8d9b00
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Oct 14 14:17:56 2022 -0300
event-editor/schedule: Trivial autoptr cleanup
src/gui/event-editor/gcal-schedule-section.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/gui/event-editor/gcal-schedule-section.c b/src/gui/event-editor/gcal-schedule-section.c
index 91b09fda..93f5e029 100644
--- a/src/gui/event-editor/gcal-schedule-section.c
+++ b/src/gui/event-editor/gcal-schedule-section.c
@@ -609,7 +609,7 @@ gcal_schedule_section_apply (GcalEventEditorSection *section)
if (freq != GCAL_RECURRENCE_NO_REPEAT)
{
- GcalRecurrence *recur;
+ g_autoptr (GcalRecurrence) recur = NULL;
recur = gcal_recurrence_new ();
recur->frequency = freq;
@@ -629,8 +629,6 @@ gcal_schedule_section_apply (GcalEventEditorSection *section)
/* ... and set the new one */
gcal_event_set_recurrence (self->event, recur);
}
-
- g_clear_pointer (&recur, gcal_recurrence_unref);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]