jni_wrapper/og_jni_wrapper.cpp
/**
 * Cleanup helper. Will release the output pixel buffer.
 */
Cleanup helper. Will release the output pixel buffer.
Cleanup helper . Will release the output pixel buffer .
void ogCleanupHelper(JNIEnv *env) {
	if (outputPxBuf && outputPxBufData) {	
		env->DeleteGlobalRef(outputPxBuf);
		delete outputPxBufData;
		outputPxBuf = NULL;
		outputPxBufData = NULL;
	}
}
void ogCleanupHelper ( JNIEnv * env ) { if ( outputPxBuf && outputPxBufData ) { env -> DeleteGlobalRef ( outputPxBuf ) ; delete outputPxBufData ; outputPxBuf = NULL ; outputPxBufData = NULL ; } }
Cleanup helper.
Cleanup helper .
// buffer is already set, release it first