From bc6a2db22f01b7f4a791837f0649de8ff0afebc7 Mon Sep 17 00:00:00 2001 From: Tanner Rogalsky Date: Tue, 7 Feb 2017 15:23:53 -0500 Subject: [PATCH] Do not attempt to free pointer to scratch buffer --HG-- branch : minor --- src/modules/graphics/wrap_Graphics.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;