mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 14:03:17 +00:00
glamor/glamor_egl.c: Set *formats to NULL after free()
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
parent
4b65fdd356
commit
d64fc9b668
@ -810,6 +810,7 @@ glamor_get_formats(ScreenPtr screen,
|
||||
if (!eglQueryDmaBufFormatsEXT(glamor_egl->display, num,
|
||||
(EGLint *) *formats, &num)) {
|
||||
free(*formats);
|
||||
*formats = NULL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user