mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Memory leak and crash fixes
This commit is contained in:
@@ -91,6 +91,8 @@ RES ResourceFormatPKM::load(const String &p_path, const String &p_original_path,
|
||||
if (r_error)
|
||||
*r_error = OK;
|
||||
|
||||
f->close();
|
||||
memdelete(f);
|
||||
return texture;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user