diff options
author | Vinzenz Feenstra <evilissimo@gmail.com> | 2014-02-14 20:51:55 +0100 |
---|---|---|
committer | Vinzenz Feenstra <evilissimo@gmail.com> | 2014-02-14 20:51:55 +0100 |
commit | 96bc0c9f15862b09fd977533223b1b1403ec7e21 (patch) | |
tree | ef28e948aab11c368d2d18bc6fe811e8eecf1aa1 /bin | |
parent | c12a8e922ff724d7fe9909c16f9a1b5aec7f010b (diff) |
Fixed crash bug in the shaderlang test
Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
Diffstat (limited to 'bin')
-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); } |