Commit 0c284ce2 authored by Tristan Matthews's avatar Tristan Matthews

png: decoder: fix leak (CID 1435160)

Regression from b3b7f62c
parent 17494bc4
......@@ -117,7 +117,7 @@ static int OpenDecoder( vlc_object_t *p_this )
/* Allocate the memory needed to store the decoder's structure */
decoder_sys_t *p_sys = malloc( sizeof(decoder_sys_t) );
if( p_dec->p_sys == NULL )
if( p_sys == NULL )
return VLC_ENOMEM;
p_dec->p_sys = p_sys;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment