From e4bfdb7ed257fea8bbeae1b57e38fe56ddb0468a Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 18 Feb 2016 15:52:52 -0200 Subject: [PATCH] event: plug a memory leak --- src/gcal-event.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gcal-event.c b/src/gcal-event.c index 2ccd946e..17f71f98 100644 --- a/src/gcal-event.c +++ b/src/gcal-event.c @@ -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",