[gnome-text-editor] sidebaritem: fix leak of GDateTime



commit 6d020ebdf6afeb78d4d1f029263fdeedf9752772
Author: Christian Hergert <chergert redhat com>
Date:   Wed Oct 20 13:01:11 2021 -0700

    sidebaritem: fix leak of GDateTime

 src/editor-sidebar-item.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/editor-sidebar-item.c b/src/editor-sidebar-item.c
index a9b1b96..df999ac 100644
--- a/src/editor-sidebar-item.c
+++ b/src/editor-sidebar-item.c
@@ -242,7 +242,7 @@ editor_sidebar_item_get_property (GObject    *object,
   switch (prop_id)
     {
     case PROP_AGE:
-      g_value_set_boxed (value, _editor_sidebar_item_get_age (self));
+      g_value_take_boxed (value, _editor_sidebar_item_get_age (self));
       break;
 
     case PROP_DRAFT_ID:


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