瀏覽代碼

Merge pull request #77 from vinzenz/shaderlang-test-crash-fix

Fixed crash bug in the shaderlang test
reduz 11 年之前
父節點
當前提交
b0870e487c
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      bin/tests/test_shader_lang.cpp

+ 1 - 2
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);
 	}