mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 04:28:02 +02:00
[win32] Initialize clip_region
Eek, I attempted to destroy an uninitialised region on the first use of a clip.
This commit is contained in:
parent
9b33a2e1c7
commit
8654a4b35c
1 changed files with 3 additions and 0 deletions
|
|
@ -338,6 +338,8 @@ _cairo_win32_surface_create_for_dc (HDC original_dc,
|
|||
if (surface == NULL)
|
||||
return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_NO_MEMORY));
|
||||
|
||||
surface->clip_region = NULL;
|
||||
|
||||
status = _create_dc_and_bitmap (surface, original_dc, format,
|
||||
width, height,
|
||||
&bits, &rowstride);
|
||||
|
|
@ -1707,6 +1709,7 @@ cairo_win32_surface_create (HDC hdc)
|
|||
return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_NO_MEMORY));
|
||||
}
|
||||
|
||||
surface->clip_region = NULL;
|
||||
surface->image = NULL;
|
||||
surface->format = format;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue