[vlc-devel] [PATCH] packetizer: avparser: fix memory leak
Steve Lhomme
robux4 at ycbcr.xyz
Fri Dec 7 08:11:51 CET 2018
On 06/12/2018 14:00, Zhao Zhili wrote:
> Ping...
>
> On 2018/11/26 下午2:52, Zhao Zhili wrote:
>> Please review, thanks!
>>
>> On 2018/11/22 上午10:13, Zhao Zhili wrote:
>>> ---
>>> modules/packetizer/avparser.c | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/modules/packetizer/avparser.c
>>> b/modules/packetizer/avparser.c
>>> index 1f911bb..a409e58 100644
>>> --- a/modules/packetizer/avparser.c
>>> +++ b/modules/packetizer/avparser.c
>>> @@ -67,6 +67,7 @@ static void FlushPacketizer( decoder_t *p_dec )
>>> {
>>> avparser_ClosePacketizer( VLC_OBJECT( p_dec ) );
>>> p_dec->p_sys = NULL;
>>> + es_format_Clean( &p_dec->fmt_out );
This should be done in avparser_ClosePacketizer() since the copy happens
in avparser_OpenPacketizer()
>>> int res = avparser_OpenPacketizer( VLC_OBJECT( p_dec ) );
>>> if ( res != VLC_SUCCESS )
>>> {
>>
>
>
>
> _______________________________________________
> 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