gcal-event: fix several memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=782972
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
e1c9ec82f6
commit
00b89b89cd
+6
-2
@@ -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 (¤t);
|
||||
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 (¤t);
|
||||
e_cal_component_free_datetime (component_dt);
|
||||
g_free (component_dt);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user