Commit fdf18908 authored by Olivier Aubert's avatar Olivier Aubert

src/control/mediacontrol_util: do not malloc a mediacontrol_Exception

if it is NULL (memleak pointed by Pierre D'Herbemont)
parent f57013c6
......@@ -253,11 +253,6 @@ mediacontrol_PlaylistSeq__free( mediacontrol_PlaylistSeq* ps )
mediacontrol_Exception*
mediacontrol_exception_init( mediacontrol_Exception *exception )
{
if( exception == NULL )
{
exception = ( mediacontrol_Exception* )malloc( sizeof( mediacontrol_Exception ) );
}
exception->code = 0;
exception->message = NULL;
return exception;
......
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