From 61f0547b72d3ba80039f09064249d89fa8f2b0f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 13 Feb 2010 19:03:48 +0200 Subject: [PATCH] Remove libvlc_free --- include/vlc/libvlc.h | 9 --------- include/vlc/libvlc_media_player.h | 2 +- src/control/core.c | 5 ----- src/libvlc.sym | 1 - 4 files changed, 1 insertion(+), 16 deletions(-) diff --git a/include/vlc/libvlc.h b/include/vlc/libvlc.h index cb33ffbe0f..51bb78f4c2 100644 --- a/include/vlc/libvlc.h +++ b/include/vlc/libvlc.h @@ -188,15 +188,6 @@ VLC_PUBLIC_API const char * libvlc_get_changeset(void); struct vlc_object_t; -/** - * Frees an heap allocation (char *) returned by a LibVLC API. - * 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 ); - /** @}*/ /***************************************************************************** diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h index 029ddb17f1..eaaa358279 100644 --- a/include/vlc/libvlc_media_player.h +++ b/include/vlc/libvlc_media_player.h @@ -642,7 +642,7 @@ VLC_PUBLIC_API void libvlc_video_set_scale( libvlc_media_player_t *p_mi, float f * * \param p_mi the media player * \return the video aspect ratio or NULL if unspecified - * (the result must be released with free() or libvlc_free()). + * (the result must be released with free()). */ VLC_PUBLIC_API char *libvlc_video_get_aspect_ratio( libvlc_media_player_t *p_mi ); diff --git a/src/control/core.c b/src/control/core.c index 8bc7fd12ad..a0a5278236 100644 --- a/src/control/core.c +++ b/src/control/core.c @@ -135,8 +135,3 @@ const char * libvlc_get_changeset(void) extern const char psz_vlc_changeset[]; return psz_vlc_changeset; } - -void libvlc_free( void *ptr ) -{ - free( ptr ); -} diff --git a/src/libvlc.sym b/src/libvlc.sym index 15965ef09f..6f8820ec87 100644 --- a/src/libvlc.sym +++ b/src/libvlc.sym @@ -30,7 +30,6 @@ libvlc_event_manager_register_event_type libvlc_event_manager_release libvlc_event_send libvlc_event_type_name -libvlc_free libvlc_get_changeset libvlc_get_compiler libvlc_get_fullscreen -- 2.39.2