Pārlūkot izejas kodu

Fixed crash bug in the shaderlang test

Signed-off-by: Vinzenz Feenstra <[email protected]>
Vinzenz Feenstra 11 gadi atpakaļ
vecāks
revīzija
96bc0c9f15
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  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);
 	}