[vlc-commits] Fix crash: don't free stack pointer

Thomas Guillem git at videolan.org
Tue May 26 12:15:13 CEST 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue May 26 12:11:48 2015 +0200| [c64b46f663b8683a81aa3c60e4693d311aaf09cd] | committer: Thomas Guillem

Fix crash: don't free stack pointer

This fixes a regression brought by 9f85beeeaa0d1d8e70854ed337f2fc46092b9934

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c64b46f663b8683a81aa3c60e4693d311aaf09cd
---

 lib/media_player.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/media_player.c b/lib/media_player.c
index aa12901..2b340d4 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -1277,7 +1277,6 @@ int libvlc_media_player_get_chapter_count_for_title(
 
     int i_ret = var_Change( p_input_thread, psz_name, VLC_VAR_CHOICESCOUNT, &val, NULL );
     vlc_object_release( p_input_thread );
-    free( psz_name );
 
     return i_ret == VLC_SUCCESS ? val.i_int : -1;
 }



More information about the vlc-commits mailing list