qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ui/gtk: making dmabuf NULL when it's released.


From: Richard Henderson
Subject: Re: [PATCH] ui/gtk: making dmabuf NULL when it's released.
Date: Thu, 22 Jun 2023 07:02:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

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);
+    if (vc->gfx.guest_fb.dmabuf == dmabuf) {
+        vc->gfx.guest_fb.dmabuf = NULL;
+    }
  #endif
  }

Conditionally unused variable outside the ifdef.

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]