1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Fixes crash when loading StreamTexture from file

This commit is contained in:
Haoyu Qiu
2020-02-20 09:45:00 +08:00
parent 5ace0beeaa
commit a7578459c2

View File

@@ -405,7 +405,6 @@ Ref<Image> StreamTexture::load_image_from_file(FileAccess *f, int p_size_limit)
}
if (img.is_null() || img->empty()) {
memdelete(f);
ERR_FAIL_COND_V(img.is_null() || img->empty(), Ref<Image>());
}