Simplified ALC10.nalcOpenDevice

This commit is contained in:
Elias Naur 2007-04-26 05:58:35 +00:00
parent 649822f65b
commit a42f401331
2 changed files with 3 additions and 11 deletions

View File

@ -306,7 +306,7 @@
<target name="all" description="Creates the Java archives and the natives for the current platform" depends="jars, compile_native"/>
<!-- Create ONLY the jar archives -->
<target name="jars" description="Creates the Java archives ONLY and places them in libs/" depends="-initialize, generate-all, compile, -createjars">
<target name="jars" description="Creates the Java archives ONLY and places them in libs/" depends="-initialize, compile, -createjars">
<move todir="libs/">
<fileset dir="${lwjgl.temp}/jar">
<include name="*.jar"/>

View File

@ -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);
}