void closeDevice() { g_Player.Release(); g_Device.Release(); g_Depth.Release(); g_Image.Release(); g_IR.Release(); g_Audio.Release(); g_scriptNode.Release(); g_Context.Release(); }
void CleanUpExit() { recorder.Release(); g_player.Release(); g_image.Release(); g_scriptNode.Release(); g_context.Release(); g_hands.Release(); g_gesture.Release(); free(g_pTexMap); exit(1); }
/* * Class: org_OpenNI_Samples_Assistant_NativeMethods * Method: dispose * Signature: ()I */ JNIEXPORT jint JNICALL Java_org_OpenNI_Samples_Assistant_NativeMethods_dispose (JNIEnv *, jclass) { LOGD("dispose_start"); disposeGraphics(); mUserGen.Release(); hasUserGen = 0; mDepthGen.Release(); hasDepthGen = 0; mImageGen.Release(); hasUserGen = 0; mIrGen.Release(); hasIrGen = 0; mContext->Release(); delete mContext; mContext = 0; LOGD("dispose_end"); return XN_STATUS_OK; }