Do not attempt to free pointer to scratch buffer

--HG--
branch : minor
This commit is contained in:
Tanner Rogalsky
2017-02-07 15:23:53 -05:00
parent 2b4cd99c96
commit bc6a2db22f
+1 -2
View File
@@ -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;