correctly use delete[] instead of delete in python_mesh.cpp

This commit is contained in:
Lukas Kogler 2017-06-20 10:27:26 +02:00
parent 7677da04a6
commit 4c0c5aac8c

View File

@ -463,7 +463,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
if(id==0)
delete infile;
infile = new istringstream(string((const char*)buf, (size_t)strs));
delete buf;
delete[] buf;
#else
self.Load(*infile);