From 96bc0c9f15862b09fd977533223b1b1403ec7e21 Mon Sep 17 00:00:00 2001 From: Vinzenz Feenstra Date: Fri, 14 Feb 2014 20:51:55 +0100 Subject: Fixed crash bug in the shaderlang test Signed-off-by: Vinzenz Feenstra --- bin/tests/test_shader_lang.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin') 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); } -- cgit v1.2.3