[gnome-calendar/gnome-3-24] event: don't leak event description



commit 170a20e39a2fecfee77539df5e8d2525e507e755
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Mon Apr 17 16:53:58 2017 +0530

    event: don't leak event description
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781400

 src/gcal-event.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-event.c b/src/gcal-event.c
index b6dfb9d..1a81ea0 100644
--- a/src/gcal-event.c
+++ b/src/gcal-event.c
@@ -938,6 +938,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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]