event: plug a memory leak

This commit is contained in:
Georges Basile Stavracas Neto
2016-02-22 00:02:59 -03:00
parent b20baac1e5
commit e4bfdb7ed2
+3
View File
@@ -166,6 +166,9 @@ gcal_event_update_uid_internal (GcalEvent *self)
source_id = self->source ? e_source_get_uid (self->source) : "";
id = e_cal_component_get_id (self->component);
/* Clear the previous uid */
g_clear_pointer (&self->uid, g_free);
if (id->rid != NULL)
{
self->uid = g_strdup_printf ("%s:%s:%s",