Fixes #1519, adds initialization to Android RWops internal variables.
authorGabriel Jacobo <gabomdq@gmail.com>
Wed, 20 Jun 2012 11:25:40 -0300
changeset 6335 fbb84f5b985f
parent 6334 85b8778a05c2
child 6336 6e6163b6ba69
Fixes #1519, adds initialization to Android RWops internal variables.
src/core/android/SDL_android.cpp
--- a/src/core/android/SDL_android.cpp	Tue Jun 19 20:16:45 2012 -0300
+++ b/src/core/android/SDL_android.cpp	Wed Jun 20 11:25:40 2012 -0300
@@ -541,6 +541,8 @@
     jstring fileNameJString = mEnv->NewStringUTF(fileName);
     ctx->hidden.androidio.fileNameRef = mEnv->NewGlobalRef(fileNameJString);
     ctx->hidden.androidio.inputStreamRef = NULL;
+    ctx->hidden.androidio.readableByteChannelRef = NULL;
+    ctx->hidden.androidio.readMethod = NULL;
 
     return Android_JNI_FileOpen(ctx);
 }