Kaynağa Gözat

Do not attempt to free pointer to scratch buffer

--HG--
branch : minor
Tanner Rogalsky 8 yıl önce
ebeveyn
işleme
bc6a2db22f
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  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;