event: don't leak event description

https://bugzilla.gnome.org/show_bug.cgi?id=781400
This commit is contained in:
Mohammed Sadiq
2017-04-17 21:12:50 -03:00
committed by Georges Basile Stavracas Neto
parent 5396b946ad
commit 3be142a207
+1
View File
@@ -992,6 +992,7 @@ gcal_event_set_description (GcalEvent *self,
ECalComponentText text_component;
GSList list;
g_clear_pointer (&self->description, g_free);
self->description = g_strdup (description);
text_component.value = description;