From 2019359448bd6688a08675a26e83e9e3ea1957e0 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 14 Dec 2021 09:57:00 +0000 Subject: [PATCH] steamcompmgr: Release commits on Window destruction We could still have these hanging out in the commit queue after import doing nothing. --- src/steamcompmgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 826cef6..386a297 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -2778,6 +2778,10 @@ finish_destroy_win(Display *dpy, Window id, bool gone) w->damage = None; } + // release all commits now we are closed. + for ( commit_t& commit : w->commit_queue ) + release_commit( commit ); + wlserver_lock(); wlserver_surface_finish( &w->surface ); wlserver_unlock();