winex11.drv: Cast-qual warning fix + remove superfluous HeapFree()

Paul Vriens paul.vriens.wine at gmail.com
Sat Nov 25 08:17:11 CST 2006


On Sat, 2006-11-25 at 14:01 +0000, Andrew Talbot wrote:
> Paul Vriens wrote:
> 
> > Just out of curiosity. Why is the HeapFree superfluous? It is allocated
> > a few lines above and not free-ed in this fail condition.
> > 
> > Cheers,
> > 
> > Paul.
> 
> Hi Paul,
> 
> The fail condition is that no memory was available, therefore, what is there
> to free?
> 
> -- Andy.
> 
> 
> 
> 
Hi Andy,

the failing allocation was for lpNewFormat->Name. The freeing was for
lpNewFormat on line 516 (original).

Cheers,

Paul.




More information about the wine-devel mailing list