diff --git a/build.xml b/build.xml index e09d3f82..aa350828 100644 --- a/build.xml +++ b/build.xml @@ -306,7 +306,7 @@ - + diff --git a/src/native/common/org_lwjgl_openal_ALC10.c b/src/native/common/org_lwjgl_openal_ALC10.c index cd3cb184..3981132b 100644 --- a/src/native/common/org_lwjgl_openal_ALC10.c +++ b/src/native/common/org_lwjgl_openal_ALC10.c @@ -139,17 +139,9 @@ static jlong JNICALL Java_org_lwjgl_openal_ALC10_nalcOpenDevice (JNIEnv *env, jc /* get device */ device = alcOpenDevice((ALubyte *) tokenstring); - /* if error - cleanup and get out */ - if(device == NULL) { - if(tokenstring != NULL) { - free(tokenstring); - } - return (jlong) NULL; - } - - /* clean up */ - if (tokenstring != NULL) + if(tokenstring != NULL) { free(tokenstring); + } return (jlong)((intptr_t)device); }