소스 검색

Do not attempt to free pointer to scratch buffer

--HG--
branch : minor
Tanner Rogalsky 8 년 전
부모
커밋
bc6a2db22f
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/modules/graphics/wrap_Graphics.cpp

+ 1 - 2
src/modules/graphics/wrap_Graphics.cpp

@@ -1899,8 +1899,7 @@ int w_line(lua_State *L)
 	}
 
 	luax_catchexcept(L,
-		[&](){ instance()->polyline(coords, args); },
-		[&](bool) { delete[] coords; }
+		[&](){ instance()->polyline(coords, args); }
 	);
 
 	return 0;