[vlc-devel] libvlc issue: how to determine which char* results should be freed?
remi at remlab.net
Tue Apr 19 10:10:48 CEST 2011
----- Message d'origine -----
> Short of reading the source code, there is no way to determine which
> return values should be freed and which should not. Only the
> libvlc_video_get_aspect_ratio specifies in its comment that "the result
> must be released with free() or libvlc_free()".
Uh? Strings that do not need to be freed are normally returned as const char *.
More information about the vlc-devel