src/core/android/SDL_android.cpp
changeset 6307 6048116f40b1
parent 6284 1893d507ba42
child 6308 263e2c049c22
     1.1 --- a/src/core/android/SDL_android.cpp	Mon Apr 09 23:55:43 2012 -0400
     1.2 +++ b/src/core/android/SDL_android.cpp	Fri May 25 15:10:13 2012 -0300
     1.3 @@ -259,7 +259,9 @@
     1.4  
     1.5      mid = mEnv->GetStaticMethodID(mActivityClass,"setActivityTitle","(Ljava/lang/String;)V");
     1.6      if (mid) {
     1.7 -        mEnv->CallStaticVoidMethod(mActivityClass, mid, mEnv->NewStringUTF(title));
     1.8 +        jstring jtitle = reinterpret_cast<jstring>(mEnv->NewStringUTF(title));
     1.9 +        mEnv->CallStaticVoidMethod(mActivityClass, mid, jtitle);
    1.10 +        mEnv->DeleteLocalRef(jtitle);
    1.11      }
    1.12  }
    1.13