[gnome-calendar] event: Fix leak of GdkRGBA



commit 03d1e549f2b201451b89b9ebc71a7107d1001407
Author: Victor Toso <me victortoso com>
Date:   Sat Oct 1 00:00:03 2016 +0200

    event: Fix leak of GdkRGBA
    
    23,776 bytes in 743 blocks are definitely lost in loss record 19,053 of 19,159
       at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
       by 0x9A0C90E: g_malloc (gmem.c:94)
       by 0x9A26A55: g_slice_alloc (gslice.c:1025)
       by 0x9A26AD7: g_slice_copy (gslice.c:1076)
       by 0x6A97912: gdk_rgba_copy (gdkrgba.c:76)
       by 0x42B35E: gcal_event_set_color (gcal-event.c:750)
       by 0x42BF3E: gcal_event_set_source (gcal-event.c:1204)
       by 0x42AE20: gcal_event_set_property (gcal-event.c:481)
       by 0x956B39B: object_set_property (gobject.c:1423)
       by 0x956BFDF: g_object_new_internal (gobject.c:1817)
       by 0x956CB24: g_object_new_valist (gobject.c:2042)
       by 0x878945D: g_initable_new_valist (ginitable.c:224)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772272

 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 288853a..4f2462e 100644
--- a/src/gcal-event.c
+++ b/src/gcal-event.c
@@ -374,6 +374,7 @@ gcal_event_finalize (GObject *object)
   g_clear_pointer (&self->description, g_free);
   g_clear_pointer (&self->alarms, g_hash_table_unref);
   g_clear_pointer (&self->uid, g_free);
+  g_clear_pointer (&self->color, gdk_rgba_free);
   g_clear_object (&self->component);
   g_clear_object (&self->source);
 


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