[vlc-devel] Re: missing PUBLIC_API macro in mediacontrol APIs

KwangYul Seo kwangyul.seo at gmail.com
Mon May 7 15:04:06 CEST 2007


Okay.

If that's the case, why don't we have mediacontrol_StreamInformation__free()
function too?
StreamInformation is allocated by mediacontrol_get_stream_information(),
but there is no explicit function to free it.

Otherwise, we must do

free(stream_info->url);
free(stream_info);


2007/5/4, Olivier Aubert <olivier.aubert at liris.cnrs.fr>:
>
> > Is this intentional?
> This is intentional. The API user is not expected to create by himself
> these structures, which are returned by the mediacontrol_snapshot and
> mediacontrol_playlist_get_list methods. However, he has to free them
> after use in order to avoid memleaks.
>
> Olivier
>
> --
> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://developers.videolan.org/lists.html
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070507/ecc6de27/attachment.html>


More information about the vlc-devel mailing list