mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-16 20:10:33 +01:00
xf86XvMCScreenInit: Clear pScreenPriv->dixinfo when freeing pAdapt
Fixes double-free later in xf86XvMCCloseScreen, which would generally
cause fireworks.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
(cherry picked from commit 75408f53d4)
This commit is contained in:
parent
d0d1a694f9
commit
df319f889d
1 changed files with 1 additions and 0 deletions
|
|
@ -187,6 +187,7 @@ xf86XvMCScreenInit(ScreenPtr pScreen,
|
|||
}
|
||||
if (!pAdapt[i].xv_adaptor) {
|
||||
/* no adaptor by that name */
|
||||
pScreenPriv->dixinfo = FALSE;
|
||||
free(pAdapt);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue