On 6/22/23 00:11, Dongwon Kim wrote:
static void gd_gl_release_dmabuf(DisplayChangeListener *dcl,
QemuDmaBuf *dmabuf)
{
+VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
#ifdef CONFIG_GBM
egl_dmabuf_release_texture(dmabuf);
+i
Set vc->gfx.guest_fb.dmabuf to NULL to prevent any further access
to it after the dmabuf is released.
Cc: Gerd Hoffmann
Cc: Marc-André Lureau
Cc: Vivek Kasireddy
Signed-off-by: Dongwon Kim
---
ui/gtk.c | 4
1 file changed, 4 insertions(+)
diff --git a/ui/gtk.c b/ui/gtk.c
index e50f950f2