diff options
author | Marc Gilleron <marc.gilleron@gmail.com> | 2018-10-05 20:24:28 +0100 |
---|---|---|
committer | Marc Gilleron <marc.gilleron@gmail.com> | 2018-10-05 20:24:28 +0100 |
commit | c1bba054e623b42d05bc0ff9e350a1fc353f6860 (patch) | |
tree | 582644ec006e8326afcf75cf8fbfb0a578565d62 /core/io | |
parent | f5a77f7bdd6d59f32f7d9aad81dabc5733221275 (diff) |
Don't delete FileAccess when it is null
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/image_loader.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/io/image_loader.cpp b/core/io/image_loader.cpp index f202320043..3ae9ff676c 100644 --- a/core/io/image_loader.cpp +++ b/core/io/image_loader.cpp @@ -118,7 +118,6 @@ RES ResourceFormatLoaderImage::load(const String &p_path, const String &p_origin if (r_error) { *r_error = ERR_CANT_OPEN; } - memdelete(f); return RES(); } |