gcal-event: fix several memory leaks

https://bugzilla.gnome.org/show_bug.cgi?id=782972
This commit is contained in:
Mohammed Sadiq
2017-05-24 15:08:31 -03:00
committed by Georges Basile Stavracas Neto
parent e1c9ec82f6
commit 00b89b89cd
+6 -2
View File
@@ -916,7 +916,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 (&current);
e_cal_component_free_datetime (component_dt);
g_free (component_dt);
}
}
@@ -971,7 +973,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 (&current);
e_cal_component_free_datetime (component_dt);
g_free (component_dt);
}
}