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:
parent
ca01b1ff8d
commit
8af763fb7d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue