mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-28 02:21:08 +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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue