Fix 'Dangling pointer issue on document close'.
Guard access to UMLObject::m_pSecondary with QPointer. Also use dynamic_cast instead of static_cast for access to m_pSecondary to make sure the cast returns zero on invalid types. Using static_casts may result into invalid casted objects. BUG:345388 FIXED-IN:2.15.97 (KDE 15.03.97)
Showing with 8 additions and 7 deletions