From 82ba24815da4a67df9b99bdf2759915153855a85 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Fri, 29 Jan 2010 01:02:10 +0100 Subject: [PATCH] macosx/framework: Use libvlc_track_description_release. --- projects/macosx/framework/Sources/VLCMediaPlayer.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/macosx/framework/Sources/VLCMediaPlayer.m b/projects/macosx/framework/Sources/VLCMediaPlayer.m index acc2232c1f..d85f08b919 100644 --- a/projects/macosx/framework/Sources/VLCMediaPlayer.m +++ b/projects/macosx/framework/Sources/VLCMediaPlayer.m @@ -64,8 +64,7 @@ NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state) static inline libvlc_track_description_t *freeAndGetNextTrack(libvlc_track_description_t *track) { libvlc_track_description_t *next = track->p_next; - free(track->psz_name); - free(track); + libvlc_track_description_release(track); return next; } -- 2.39.2