audio: Release AudioTrack class (#336)

This commit is contained in:
Hajime Hoshi 2017-04-07 11:36:24 +09:00
parent 713a537637
commit a6c5b98f0f

View File

@ -145,6 +145,7 @@ static char* writeToAudioTrack(uintptr_t java_vm, uintptr_t jni_env,
(*env)->DeleteLocalRef(env, arrInShorts);
break;
}
(*env)->DeleteLocalRef(env, android_media_AudioTrack);
switch (result) {
case -3: // ERROR_INVALID_OPERATION