[vlc-devel] [PATCH] directx: fix presumed memory leak

Steve Lhomme robux4 at ycbcr.xyz
Thu Oct 1 07:43:10 CEST 2020


It's correct but I think a cleaner way would be to just allocate the 
tables in the stack like
DXVAHD_VPCAPS capsList[devcaps.VideoProcessorCount];

MSVC doesn't like these initializations, but I that ship has sailed a 
long time ago anyway.

On 2020-09-17 21:18, Lyndon Brown wrote:
> the memory allocations here are released in the error path, but not the
> success path, which looks to be a mistake to me...
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list