[libhandy/libhandy-1-2] tab-bar: Properly unref the target list



commit 6c6427bd92d95bf23deaafe341b73f924a525d4a
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu May 13 20:49:52 2021 +0500

    tab-bar: Properly unref the target list
    
    It's not an object, we can't do g_clear_object().
    
    
    (cherry picked from commit 54de3a197c68332dcaba7688ff3c30373d974225)

 src/hdy-tab-bar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/hdy-tab-bar.c b/src/hdy-tab-bar.c
index 4ed42f95..2648c367 100644
--- a/src/hdy-tab-bar.c
+++ b/src/hdy-tab-bar.c
@@ -391,7 +391,7 @@ hdy_tab_bar_dispose (GObject *object)
 
   hdy_tab_bar_set_view (self, NULL);
 
-  g_clear_object (&self->extra_drag_dest_targets);
+  g_clear_pointer (&self->extra_drag_dest_targets, gtk_target_list_unref);
 
   G_OBJECT_CLASS (hdy_tab_bar_parent_class)->dispose (object);
 }


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