summaryrefslogtreecommitdiff
path: root/modules/fbx/tools/validation_tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/fbx/tools/validation_tools.h')
-rw-r--r--modules/fbx/tools/validation_tools.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/fbx/tools/validation_tools.h b/modules/fbx/tools/validation_tools.h
index ced100aed2..fe0c92b22f 100644
--- a/modules/fbx/tools/validation_tools.h
+++ b/modules/fbx/tools/validation_tools.h
@@ -65,8 +65,9 @@ protected:
Error err;
FileAccess *file = FileAccess::open(path, FileAccess::WRITE, &err);
if (!file || err) {
- if (file)
+ if (file) {
memdelete(file);
+ }
print_error("ValidationTracker Error - failed to create file - path: %s\n" + path);
return;
}