[gnome-calendar/gnome-3-24] gcal-event: fix several memory leaks
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-24] gcal-event: fix several memory leaks
- Date: Fri, 9 Jun 2017 02:43:07 +0000 (UTC)
commit 1b844594563560c065559ca06db7775bc33f6df1
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Tue May 23 09:15:26 2017 +0530
gcal-event: fix several memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=782972
src/gcal-event.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-event.c b/src/gcal-event.c
index 4de6c77..b02cb1d 100644
--- a/src/gcal-event.c
+++ b/src/gcal-event.c
@@ -837,7 +837,9 @@ gcal_event_set_date_end (GcalEvent *self,
g_object_notify (G_OBJECT (self), "date-end");
- g_clear_pointer (&component_dt, e_cal_component_free_datetime);
+ e_cal_component_free_datetime (¤t);
+ e_cal_component_free_datetime (component_dt);
+ g_free (component_dt);
}
}
@@ -892,7 +894,9 @@ gcal_event_set_date_start (GcalEvent *self,
g_object_notify (G_OBJECT (self), "date-start");
- g_clear_pointer (&component_dt, e_cal_component_free_datetime);
+ e_cal_component_free_datetime (¤t);
+ e_cal_component_free_datetime (component_dt);
+ g_free (component_dt);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]