diff options
Diffstat (limited to 'kplato')
-rw-r--r-- | kplato/kptpart.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kplato/kptpart.cc b/kplato/kptpart.cc index 3f767e67..53ed107f 100644 --- a/kplato/kptpart.cc +++ b/kplato/kptpart.cc @@ -83,10 +83,14 @@ Part::~Part() { delete m_commandHistory; // before project, in case of dependencies... delete m_project; delete m_projectDialog; - if (m_embeddedGanttView) + if (m_embeddedGanttView) { delete m_embeddedGanttView; - if (m_embeddedContext) + m_embeddedGanttView = 0L; + } + if (m_embeddedContext) { delete m_embeddedContext; + m_embeddedContext = 0L; + } } |