diff options
author | reduz <reduzio@gmail.com> | 2014-02-14 18:59:06 -0200 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2014-02-14 18:59:06 -0200 |
commit | b0870e487c6cc68bb0a2cef7174f3f5697667a2e (patch) | |
tree | 6f3aa396033c485ff0c1b777603159e3f5421d6a | |
parent | 89f96213aae8621765122e6f9c53b42f696277e5 (diff) | |
parent | 96bc0c9f15862b09fd977533223b1b1403ec7e21 (diff) |
Merge pull request #77 from vinzenz/shaderlang-test-crash-fix
Fixed crash bug in the shaderlang test
-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); } |