Fix a memory leak in extal.c
This commit is contained in:
parent
edf5a98e80
commit
51febce1d3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue