diff -r 3feb4d20092d -r bf08a6b42102 src/ldDocument.cc --- a/src/ldDocument.cc Thu Nov 06 15:44:11 2014 +0200 +++ b/src/ldDocument.cc Wed Oct 22 20:19:53 2014 +0300 @@ -131,7 +131,8 @@ m_flags (0), m_verticesOutdated (true), m_needVertexMerge (true), - m_gldata (new LDGLData) + m_gldata (new LDGLData), + m_header (new LDHeader) { *selfptr = LDDocumentPtr (this); setSelf (*selfptr); @@ -164,6 +165,7 @@ m_flags |= DOCF_IsBeingDestroyed; delete m_history; delete m_gldata; + delete m_header; } // =============================================================================