fix: memory leak

This commit is contained in:
Brian Matzon 2002-08-18 13:47:56 +00:00
parent f6c9a484b3
commit 68e100a6e9
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALUT_loadWAVFile (JNIEnv *env, j
/* create object */
alutLoadWAVFile_object = env->NewObject(alutLoadWAVFile_class, methodID, format, (int) data, size, freq, loop);
/* release chars */
env->ReleaseStringUTFChars((jstring)filename, 0);
return alutLoadWAVFile_object;
}