[libhandy/wip/exalm/alpha-fixes: 5/8] window-mixin: Prevent a guaranteed double free




commit e2938f2f39c9b913d02af573a8fde963aa3b82dc
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Nov 12 00:48:14 2021 +0500

    window-mixin: Prevent a guaranteed double free
    
    Yikes, so because it contains a leaflet that's always leaked we had an
    extra gtk_widget_destroy() here to compensate. Kill it with fire.

 src/hdy-window-mixin.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/hdy-window-mixin.c b/src/hdy-window-mixin.c
index 871a54c2..fd0d1e90 100644
--- a/src/hdy-window-mixin.c
+++ b/src/hdy-window-mixin.c
@@ -472,7 +472,6 @@ hdy_window_mixin_destroy (HdyWindowMixin *self)
 {
   if (self->content) {
     hdy_window_mixin_remove (self, self->content);
-    gtk_widget_destroy (self->content);
     self->content = NULL;
     self->child = NULL;
   }


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