fixed memory leak in decode core

This commit is contained in:
strawmanbobi
2020-07-04 17:08:04 +08:00
parent c4cddd427b
commit ea33c2ac1f

View File

@@ -54,7 +54,7 @@ JNIEXPORT jint JNICALL Java_net_irext_decode_sdk_IRDecode_irOpenBinary
(*env)->ReleaseByteArrayElements(env, binaries, j_buffer, JNI_ABORT);
return IR_DECODE_FAILED;
}
(*env)->ReleaseByteArrayElements(env, binaries, j_buffer, JNI_ABORT);
return IR_DECODE_SUCCEEDED;
}