From 897f524154f4c2bb57d58f15e6ef4dececc08b01 Mon Sep 17 00:00:00 2001 From: rachytski Date: Fri, 16 Dec 2011 17:41:30 +0400 Subject: [PATCH] closes #466 --- android/jni/nv_event/nv_event.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/jni/nv_event/nv_event.cpp b/android/jni/nv_event/nv_event.cpp index fe8c9de150..93883cd4e8 100644 --- a/android/jni/nv_event/nv_event.cpp +++ b/android/jni/nv_event/nv_event.cpp @@ -581,8 +581,13 @@ static jboolean NVEventAccelerometerEvent(JNIEnv* env, jobject thiz, jfloat valu /////////////////////////////////////////////////////////////////////////////// // Java to Native app lifecycle callback functions +static jboolean onDestroyNative(JNIEnv* env, jobject thiz); + static jboolean onCreateNative(JNIEnv* env, jobject thiz) { + if (s_globalThiz) + onDestroyNative(env, thiz); + ZeroAppFlags(); if (!s_globalThiz)