Memory leak and crash fixes

This commit is contained in:
Rafał Mikrut
2019-11-10 09:49:13 +01:00
parent 4569f5ec82
commit 7dda9309f9
10 changed files with 24 additions and 4 deletions

View File

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