QWaylandView: Remember to release front buffer when surface unset


When we're locking the front buffer i.e. on surface destruction,
and then the view's surface is reset to null,
unlocking the locked buffer must release it.
The same is true for changing the view's surface but I'd expect
the new surface's commit + advance do the job.

Change-Id: I0518590bd7d1482046b5ede1cf3f9b12825621f6
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit5a1a8a25bf33ad4fc12d3557c4bdccbb90a83f1c
parent93302c378130e7b0d94b7ec85426954024375b9a
authorKonstantin Ritt <ritt.ks@gmail.com>
committerKonstantin Ritt <ritt.ks@gmail.com>
commit timeThu, 4 Dec 2025 18:55:52 +0300