mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
ui/pixman: generalize shared_image_destroy
Learn to free memfd-allocated shared memory. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-ID: <20241008125028.1177932-10-marcandre.lureau@redhat.com>
This commit is contained in:
parent
c90204b654
commit
1bfb726112
4 changed files with 16 additions and 12 deletions
|
|
@ -487,7 +487,7 @@ DisplaySurface *qemu_create_displaysurface(int width, int height)
|
|||
#ifdef WIN32
|
||||
qemu_displaysurface_win32_set_handle(surface, handle, 0);
|
||||
pixman_image_set_destroy_function(surface->image,
|
||||
qemu_pixman_win32_image_destroy, handle);
|
||||
qemu_pixman_shared_image_destroy, handle);
|
||||
#endif
|
||||
return surface;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue