Commit 62f24677 authored by Olivier Aubert's avatar Olivier Aubert

python bindings: use mediacontrol_StreamInformation__free + fix

memleak in MediaControl_snapshot
parent a5623bf3
......@@ -406,6 +406,8 @@ MediaControl_snapshot( PyObject *self, PyObject *args )
PyDict_SetItemString( py_obj, "date",
Py_BuildValue( "L", p_retval->date ) );
mediacontrol_RGBPicture__free( p_retval );
return py_obj;
}
......@@ -463,8 +465,7 @@ MediaControl_get_stream_information( PyObject *self, PyObject *args )
PyDict_SetItemString( py_obj, "length",
Py_BuildValue( "L", retval->length ) );
free( retval->url );
free( retval );
mediacontrol_StreamInformation__free( retval );
return py_obj;
}
......
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