Commit 75408f53 authored by Michel Dänzer's avatar Michel Dänzer Committed by Adam Jackson

xf86XvMCScreenInit: Clear pScreenPriv->dixinfo when freeing pAdapt

Fixes double-free later in xf86XvMCCloseScreen, which would generally
cause fireworks.
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
Signed-off-by: Michel Dänzer's avatarMichel Dänzer <michel.daenzer@amd.com>
parent 76732f49
......@@ -187,6 +187,7 @@ xf86XvMCScreenInit(ScreenPtr pScreen,
}
if (!pAdapt[i].xv_adaptor) {
/* no adaptor by that name */
pScreenPriv->dixinfo = FALSE;
free(pAdapt);
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment