clients/image: do not leak cairo surface

Do not forget to destroy the cairo surface.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
Leandro Ribeiro 2024-04-25 11:26:23 -03:00 committed by Pekka Paalanen
parent ca01b1ff8d
commit 8af763fb7d
1 changed files with 2 additions and 0 deletions

View File

@ -369,6 +369,8 @@ close_handler(void *data)
if (*image->image_counter == 0) if (*image->image_counter == 0)
display_exit(image->display); display_exit(image->display);
cairo_surface_destroy(image->image);
widget_destroy(image->image_widget); widget_destroy(image->image_widget);
widget_destroy(image->frame_widget); widget_destroy(image->frame_widget);
window_destroy(image->window); window_destroy(image->window);