fb: fbFinishScreenInit: leaked_storage: Variable "(visuals|depths)" goes out of scope
Signed-off-by: Oliver McFadden <oliver.mcfadden@nokia.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
		
							parent
							
								
									d9ee31ab05
								
							
						
					
					
						commit
						aeae6637b5
					
				|  | @ -228,7 +228,11 @@ fbFinishScreenInit(ScreenPtr	pScreen, | ||||||
|     rootdepth = 0; |     rootdepth = 0; | ||||||
|     if (!fbInitVisuals (&visuals, &depths, &nvisuals, &ndepths, &rootdepth, |     if (!fbInitVisuals (&visuals, &depths, &nvisuals, &ndepths, &rootdepth, | ||||||
| 			&defaultVisual,((unsigned long)1<<(imagebpp-1)), 8)) | 			&defaultVisual,((unsigned long)1<<(imagebpp-1)), 8)) | ||||||
|  |     { | ||||||
|  | 	xfree (visuals); | ||||||
|  | 	xfree (depths); | ||||||
| 	return FALSE; | 	return FALSE; | ||||||
|  |     } | ||||||
|     if (! miScreenInit(pScreen, pbits, xsize, ysize, dpix, dpiy, width, |     if (! miScreenInit(pScreen, pbits, xsize, ysize, dpix, dpiy, width, | ||||||
| 			rootdepth, ndepths, depths, | 			rootdepth, ndepths, depths, | ||||||
| 			defaultVisual, nvisuals, visuals)) | 			defaultVisual, nvisuals, visuals)) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue