Commit 9cb58a49 authored by Felix Paul Kühne's avatar Felix Paul Kühne

npolibvlc: fix mem leaks

parent a18ba735
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment