mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
ui: Replacing pointer in function
At the end of the first if we see 'vc->gfx.surface = NULL;', further checking of it is pointless. In the second if, ectx is taken. Found by Linux Verification Center (linuxtesting.org) with SVACE. Co-developed-by: Linux Verification Center <sdl.qemu@linuxtesting.org> Signed-off-by: Sergey Mironov <mironov@fintech.ru> Message-ID: <20231012104448.1251039-1-mironov@fintech.ru> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
committed by
Marc-André Lureau
parent
5ec0898b05
commit
fb93569e42
@@ -1400,7 +1400,7 @@ static void gd_menu_untabify(GtkMenuItem *item, void *opaque)
|
||||
eglDestroySurface(qemu_egl_display, vc->gfx.esurface);
|
||||
vc->gfx.esurface = NULL;
|
||||
}
|
||||
if (vc->gfx.esurface) {
|
||||
if (vc->gfx.ectx) {
|
||||
eglDestroyContext(qemu_egl_display, vc->gfx.ectx);
|
||||
vc->gfx.ectx = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user