- Using hard-fp

- Immersive mode in android-19
- Fixed local reference release in JNI helper
- Misc fixes
Change-Id: I3ab19c2b66648bb7a011c462d9d98e75bc136ce6
This commit is contained in:
Hak Matsuda
2013-11-09 01:03:15 -08:00
committed by Andrew Hsieh
parent 1f1e737907
commit cc69f210a7
13 changed files with 54 additions and 14 deletions

View File

@@ -131,8 +131,8 @@ bool JNIHelper::ReadFile( const char* fileName,
s.append( fileName );
std::ifstream f( s.c_str(), std::ios::binary );
env->DeleteLocalRef( str_path );
env->ReleaseStringUTFChars( str_path, path );
env->DeleteLocalRef( str_path );
activity_->vm->DetachCurrentThread();
if( f )
@@ -197,8 +197,8 @@ std::string JNIHelper::GetExternalFilesDir()
const char* path = env->GetStringUTFChars( strPath, NULL );
std::string s( path );
env->DeleteLocalRef( strPath );
env->ReleaseStringUTFChars( strPath, path );
env->DeleteLocalRef( strPath );
activity_->vm->DetachCurrentThread();
pthread_mutex_unlock( &mutex_ );
@@ -277,9 +277,9 @@ std::string JNIHelper::ConvertString( const char* str,
std::string s = std::string( cparam );
env->ReleaseStringUTFChars( object, cparam );
env->DeleteLocalRef( strEncode );
env->DeleteLocalRef( object );
env->ReleaseStringUTFChars( object, cparam );
activity_->vm->DetachCurrentThread();
pthread_mutex_unlock( &mutex_ );