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

This commit is contained in:
Sam Lantinga 2024-06-05 05:48:21 -07:00
parent 9b2debb131
commit 4836fd1e70

View file

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