diff options
-rw-r--r-- | bin/tests/test_shader_lang.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/tests/test_shader_lang.cpp b/bin/tests/test_shader_lang.cpp index fbd8be7fb0..3ee32fe1aa 100644 --- a/bin/tests/test_shader_lang.cpp +++ b/bin/tests/test_shader_lang.cpp @@ -288,8 +288,7 @@ MainLoop* test() { FileAccess *fa = FileAccess::open(test,FileAccess::READ); - if (!fa) { - memdelete(fa); + if (!fa) { ERR_FAIL_V(NULL); } |