Browse Source

Fixed crash if a file can't be opened on Android

Sam Lantinga 10 months ago
parent
commit
4836fd1e70
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/file/SDL_iostream.c

+ 0 - 1
src/file/SDL_iostream.c

@@ -600,7 +600,6 @@ SDL_IOStream *SDL_IOFromFile(const char *file, const char *mode)
 
     void *iodata = NULL;
     if (Android_JNI_FileOpen(&iodata, file, mode) < 0) {
-        Android_JNI_FileClose(iodata);
         return NULL;
     }