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>
This commit is contained in:
		
							parent
							
								
									76732f498f
								
							
						
					
					
						commit
						75408f53d4
					
				| 
						 | 
					@ -187,6 +187,7 @@ xf86XvMCScreenInit(ScreenPtr pScreen,
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (!pAdapt[i].xv_adaptor) {
 | 
					        if (!pAdapt[i].xv_adaptor) {
 | 
				
			||||||
            /* no adaptor by that name */
 | 
					            /* no adaptor by that name */
 | 
				
			||||||
 | 
					            pScreenPriv->dixinfo = FALSE;
 | 
				
			||||||
            free(pAdapt);
 | 
					            free(pAdapt);
 | 
				
			||||||
            return FALSE;
 | 
					            return FALSE;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue