mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 22:30:33 +05:00
correctly use delete[] instead of delete in python_mesh.cpp
This commit is contained in:
parent
7677da04a6
commit
4c0c5aac8c
@ -463,7 +463,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
if(id==0)
|
if(id==0)
|
||||||
delete infile;
|
delete infile;
|
||||||
infile = new istringstream(string((const char*)buf, (size_t)strs));
|
infile = new istringstream(string((const char*)buf, (size_t)strs));
|
||||||
delete buf;
|
delete[] buf;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
self.Load(*infile);
|
self.Load(*infile);
|
||||||
|
Loading…
Reference in New Issue
Block a user