2
0
Эх сурвалжийг харах

Merge pull request #36376 from timothyqiu/fix-load-image-crash

Fixes crash when loading StreamTexture from file
Rémi Verschelde 5 жил өмнө
parent
commit
9f9447ea9f

+ 0 - 1
scene/resources/texture.cpp

@@ -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>());
 			}