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:
parent
c85de4a59c
commit
2019359448
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue