X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc%2Flibvlc.h;fp=include%2Fvlc%2Flibvlc.h;h=5b8c265f51c2403afc9f1d1f5869f2f8ed4e718d;hb=fe2fb5d35cfb033bbd1b3f2b588de34653677c2c;hp=8541768ff5f03c7b71e9d68eca7e4e950aec86b0;hpb=5a2f258ce8cd94f83fd6f0808be2154272e632f3;p=vlc diff --git a/include/vlc/libvlc.h b/include/vlc/libvlc.h index 8541768ff5..5b8c265f51 100644 --- a/include/vlc/libvlc.h +++ b/include/vlc/libvlc.h @@ -226,6 +226,14 @@ VLC_PUBLIC_API const char * libvlc_get_compiler(void); */ VLC_PUBLIC_API const char * libvlc_get_changeset(void); +/** + * Frees an heap allocation returned by a LibVLC function. + * If you know you're using the same underlying C run-time as the LibVLC + * implementation, then you can call ANSI C free() directly instead. + * + * \param ptr the pointer + */ +VLC_PUBLIC_API void libvlc_free( void *ptr ); /** \defgroup libvlc_event LibVLC asynchronous events * LibVLC emits asynchronous events.