diff --git a/src/modules/graphics/wrap_Graphics.cpp b/src/modules/graphics/wrap_Graphics.cpp index aa42e8757..ce0c93bfd 100644 --- a/src/modules/graphics/wrap_Graphics.cpp +++ b/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;