[vlc-commits] npolibvlc: fix mem leaks
Felix Paul Kühne
git at videolan.org
Mon Feb 17 18:23:24 CET 2014
npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Feb 17 18:06:43 2014 +0100| [9cb58a49b0c456193195ee18941ca00c300ae0f7] | committer: Felix Paul Kühne
npolibvlc: fix mem leaks
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=9cb58a49b0c456193195ee18941ca00c300ae0f7
---
npapi/control/npolibvlc.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/npapi/control/npolibvlc.cpp b/npapi/control/npolibvlc.cpp
index e024c81..fb5a1d7 100644
--- a/npapi/control/npolibvlc.cpp
+++ b/npapi/control/npolibvlc.cpp
@@ -422,6 +422,7 @@ LibvlcAudioNPObject::invoke(int index, const NPVariant *args,
p_trackDesc = p_trackDesc->p_next;
}
psz_name = p_trackDesc->psz_name;
+ libvlc_track_description_list_release(p_trackDesc);
/* display the name of the track chosen */
return invokeResultString( psz_name, result );
@@ -1355,6 +1356,7 @@ LibvlcSubtitleNPObject::invoke(int index, const NPVariant *args,
p_spuDesc = p_spuDesc->p_next;
}
psz_name = p_spuDesc->psz_name;
+ libvlc_track_description_list_release(p_spuDesc);
/* return the name of the track chosen */
return invokeResultString(psz_name, result);
More information about the vlc-commits
mailing list