diff --git a/libsrc/core/python_ngcore_export.cpp b/libsrc/core/python_ngcore_export.cpp index a6730f4d..6d931471 100644 --- a/libsrc/core/python_ngcore_export.cpp +++ b/libsrc/core/python_ngcore_export.cpp @@ -274,8 +274,7 @@ threads : int "size in Megabytes" ) .def("__enter__", [](PajeTrace & self) { }) - .def("__exit__", [](PajeTrace & self, py::args) { self.StopTracing(); }) - .def("__del__", [](PajeTrace & self) { trace = nullptr; }) + .def("__exit__", [](PajeTrace & self, py::args) { trace = nullptr; }) .def_static("SetTraceThreads", &PajeTrace::SetTraceThreads) .def_static("SetTraceThreadCounter", &PajeTrace::SetTraceThreadCounter) .def_static("SetMaxTracefileSize", &PajeTrace::SetMaxTracefileSize)