mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-05 02:09:44 +00:00
Fix crash when resetting pixman image transform
Resetting the transform is done by setting it to the identity transform, not passing in NULL. Passing in NULL causes a crash.
This commit is contained in:
parent
96faad998e
commit
49c6fca7cf
@ -1751,7 +1751,8 @@ static pixman_image_t *canvas_scale_surface(pixman_image_t *src, const SpiceRect
|
||||
0, 0, /* dst */
|
||||
width, height);
|
||||
|
||||
pixman_image_set_transform(src, NULL);
|
||||
pixman_transform_init_identity(&transform);
|
||||
pixman_image_set_transform(src, &transform);
|
||||
|
||||
return surface;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user