steamcompmgr: Release commits on Window destruction

We could still have these hanging out in the commit queue after import doing nothing.
This commit is contained in:
Joshua Ashton 2021-12-14 09:57:00 +00:00 committed by Pierre-Loup A. Griffais
parent c85de4a59c
commit 2019359448

View file

@ -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();