Fix a memory leak in extal.c

This commit is contained in:
Elias Naur 2004-11-19 14:40:56 +00:00
parent edf5a98e80
commit 51febce1d3
1 changed files with 3 additions and 1 deletions

View File

@ -188,9 +188,11 @@ static bool LoadOpenAL(JNIEnv *env, jobjectArray oalPaths) {
#endif #endif
if (handleOAL != NULL) { if (handleOAL != NULL) {
printfDebug("Found OpenAL at '%s'\n", path_str); printfDebug("Found OpenAL at '%s'\n", path_str);
return true;
} }
free(path_str); free(path_str);
if (handleOAL != NULL) {
return true;
}
} }
throwException(env, "Could not load openal library."); throwException(env, "Could not load openal library.");
return false; return false;