From 4836fd1e70f384e8cc4ffe71406db82e14c3469d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 5 Jun 2024 05:48:21 -0700 Subject: [PATCH] Fixed crash if a file can't be opened on Android --- src/file/SDL_iostream.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/file/SDL_iostream.c b/src/file/SDL_iostream.c index c0db97c42f..a99b6d1cd5 100644 --- a/src/file/SDL_iostream.c +++ b/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; }