[libwnck/wip/muktupavels/wnck-handle: 7/8] handle: fix crash




commit 9affe86870bdef2a4e7b07e31b6aac70ae53ddf0
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Mar 1 19:23:23 2022 +0200

    handle: fix crash
    
    Commit ace10756cb42 lost `display = _wnck_get_default_display ();`
    causing crash when finalizing WnckHandle.

 libwnck/wnck-handle.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/libwnck/wnck-handle.c b/libwnck/wnck-handle.c
index 5c2ba806..6f8579f5 100644
--- a/libwnck/wnck-handle.c
+++ b/libwnck/wnck-handle.c
@@ -195,6 +195,8 @@ wnck_handle_finalize (GObject *object)
       Display *display;
       int i;
 
+      display = _wnck_get_default_display ();
+
       for (i = 0; i < ScreenCount (display); ++i)
         g_clear_object (&self->screens[i]);
 


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