X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_file.cpp;h=3657fd2943088012fa4c69abc790bb753a151f8e;hb=0d6280a224f983d4e51e25daa7b2b4a4fa222583;hp=22106026327f1e1e5572cf06585fcd9ebfad36c1;hpb=b291a1d878c0f462871b2ce715dc4e2602085ed0;p=apitrace diff --git a/common/trace_file.cpp b/common/trace_file.cpp index 2210602..3657fd2 100644 --- a/common/trace_file.cpp +++ b/common/trace_file.cpp @@ -28,6 +28,7 @@ #include + using namespace trace; @@ -43,7 +44,8 @@ File::File(const std::string &filename, File::~File() { - close(); + // We can't invoke any overriden virtual method here anymore + assert(!m_isOpened); }