1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix some code found by Coverity Scan and PVS Studio

This commit is contained in:
qarmin
2019-07-23 09:14:31 +02:00
parent e466dc2daa
commit aab8da25ad
24 changed files with 71 additions and 65 deletions

View File

@@ -718,8 +718,8 @@ Error ResourceInteractiveLoaderBinary::poll() {
Resource *r = Object::cast_to<Resource>(obj);
if (!r) {
error = ERR_FILE_CORRUPT;
memdelete(obj); //bye
ERR_EXPLAIN(local_path + ":Resource type in resource field not a resource, type is: " + obj->get_class());
memdelete(obj); //bye
ERR_FAIL_V(ERR_FILE_CORRUPT);
}