[gnome-calendar] calendar: Fix double free



commit badd1fb0f1a5a168c624397b1acc76a1d2c700a9
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri May 24 21:25:28 2019 -0300

    calendar: Fix double free
    
    The GError is unreferenced twice.

 src/core/gcal-calendar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/core/gcal-calendar.c b/src/core/gcal-calendar.c
index de5d02bb..e06cb09a 100644
--- a/src/core/gcal-calendar.c
+++ b/src/core/gcal-calendar.c
@@ -195,7 +195,7 @@ gcal_calendar_initable_init (GInitable     *initable,
 
   if (local_error)
     {
-      g_propagate_error (error, local_error);
+      g_propagate_error (error, g_steal_pointer (&local_error));
       GCAL_RETURN (FALSE);
     }
 


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