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
|
||||
if (handleOAL != NULL) {
|
||||
printfDebug("Found OpenAL at '%s'\n", path_str);
|
||||
return true;
|
||||
}
|
||||
free(path_str);
|
||||
if (handleOAL != NULL) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
throwException(env, "Could not load openal library.");
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue