Commit 46b3e1a7 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

readMediaMeta: fix memleak

parent 1b454f51
......@@ -315,6 +315,7 @@ jobjectArray Java_org_videolan_vlc_android_LibVLC_readMediaMeta(JNIEnv *env,
const char *psz_mrl = (*env)->GetStringUTFChars(env, mrl, &isCopy);
libvlc_media_t *m = libvlc_media_new_path((libvlc_instance_t*)instance,
psz_mrl);
(*env)->ReleaseStringUTFChars(env, mrl, psz_mrl);
libvlc_media_parse(m);
int i;
......
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