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
- umbrello/classifier.cpp 1 addition, 1 deletionumbrello/classifier.cpp
- umbrello/classifierlistitem.cpp 1 addition, 1 deletionumbrello/classifierlistitem.cpp
- umbrello/package.cpp 1 addition, 3 deletionsumbrello/package.cpp
- umbrello/umldoc.cpp 2 additions, 0 deletionsumbrello/umldoc.cpp
- umbrello/umlobject.cpp 1 addition, 1 deletionumbrello/umlobject.cpp
- umbrello/umlobject.h 2 additions, 1 deletionumbrello/umlobject.h
Loading
Please register or sign in to comment