From: Pierre d'Herbemont Date: Fri, 29 Jan 2010 00:02:10 +0000 (+0100) Subject: macosx/framework: Use libvlc_track_description_release. X-Git-Tag: 1.1.0-ff~722 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=82ba24815da4a67df9b99bdf2759915153855a85;p=vlc macosx/framework: Use libvlc_track_description_release. --- 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; }