Commit a5623bf3 authored by Olivier Aubert's avatar Olivier Aubert

mediacontrol API: implement mediacontrol_StreamInformation__free in the public API.

parent 299c9ec6
......@@ -134,6 +134,13 @@ mediacontrol_PlaylistSeq *mediacontrol_PlaylistSeq__alloc( int size );
VLC_PUBLIC_API void mediacontrol_PlaylistSeq__free( mediacontrol_PlaylistSeq *ps );
/**
* Free a StreamInformation structure.
* \param pic: the StreamInformation structure
*/
VLC_PUBLIC_API void
mediacontrol_StreamInformation__free( mediacontrol_StreamInformation* p_si );
/**
* Instanciate and initialize an exception structure.
* \return the exception
......
......@@ -216,8 +216,10 @@ void
mediacontrol_RGBPicture__free( mediacontrol_RGBPicture* pic )
{
if( pic )
{
free( pic->data );
free( pic );
}
}
mediacontrol_PlaylistSeq*
......@@ -242,11 +244,22 @@ mediacontrol_PlaylistSeq__free( mediacontrol_PlaylistSeq* ps )
int i;
for( i = 0 ; i < ps->size ; i++ )
free( ps->data[i] );
}
free( ps->data );
free( ps );
}
}
void
mediacontrol_StreamInformation__free( mediacontrol_StreamInformation* p_si )
{
if( p_si )
{
free( p_si->url );
free( p_si );
}
}
mediacontrol_Exception*
mediacontrol_exception_create( void )
{
......
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