Commit 42e6f502 authored by Francois Cartegnie's avatar Francois Cartegnie

stream_filter: smooth: fix memleak

parent 059529ab
...@@ -109,6 +109,11 @@ sms_stream_t * sms_New( void ) ...@@ -109,6 +109,11 @@ sms_stream_t * sms_New( void )
sms->qlevels = vlc_array_new(); sms->qlevels = vlc_array_new();
sms->chunks = vlc_array_new(); sms->chunks = vlc_array_new();
if ( unlikely(!sms->qlevels || !sms->chunks) )
{
sms_Free( sms );
return NULL;
}
sms->type = UNKNOWN_ES; sms->type = UNKNOWN_ES;
return sms; return sms;
} }
......
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