mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 08:48:00 +02:00
win32: Free the fallback upon finish
Zozó Teki pointed out that we leak the fallback surface upon finish in case it was active at the time as the preceding flush would only clear the damage and not decouple the fallback surface. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
41e646e019
commit
fb1abbc4bc
1 changed files with 3 additions and 0 deletions
|
|
@ -429,6 +429,8 @@ _cairo_win32_display_surface_finish (void *abstract_surface)
|
|||
DeleteDC (surface->win32.dc);
|
||||
}
|
||||
|
||||
_cairo_win32_display_surface_discard_fallback (surface);
|
||||
|
||||
if (surface->initial_clip_rgn)
|
||||
DeleteObject (surface->initial_clip_rgn);
|
||||
|
||||
|
|
@ -758,6 +760,7 @@ _cairo_win32_display_surface_discard_fallback (cairo_win32_display_surface_t *su
|
|||
TRACE ((stderr, "%s (surface=%d)\n",
|
||||
__FUNCTION__, surface->win32.base.unique_id));
|
||||
|
||||
cairo_surface_finish (surface->fallback);
|
||||
cairo_surface_destroy (surface->fallback);
|
||||
surface->fallback = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue