summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/tests/test_shader_lang.cpp3
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);
}