clients: fix surface viewport memory leak

Signed-off-by: Daniel Martinez <danielmartinez@cock.li>
This commit is contained in:
Daniel Martinez 2024-06-07 12:25:15 -04:00 committed by Marius Vlad
parent 984d36aaca
commit 2bce726992

View File

@ -1396,6 +1396,9 @@ surface_destroy(struct surface *surface)
if (surface->subsurface)
wl_subsurface_destroy(surface->subsurface);
if (surface->viewport)
wp_viewport_destroy(surface->viewport);
wl_surface_destroy(surface->surface);
if (surface->toysurface)