[umbrello-devel] [umbrello] [Bug 345388] Dangling pointer issue on document close

Ralf Habacker ralf.habacker at freenet.de
Mon Mar 23 10:38:15 UTC 2015


Ralf Habacker <ralf.habacker at freenet.de> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
   Version Fixed In|                            |2.15.97 (KDE 15.03.97)
         Resolution|---                         |FIXED
      Latest Commit|                            |http://commits.kde.org/umbr
                   |                            |ello/49aaa21f7f0b859253768d
                   |                            |c2e4fc57cd7f1ba8f9

--- Comment #8 from Ralf Habacker <ralf.habacker at freenet.de> ---
Git commit 49aaa21f7f0b859253768dc2e4fc57cd7f1ba8f9 by Ralf Habacker.
Committed on 22/03/2015 at 12:42.
Pushed by habacker into branch 'Applications/15.04'.

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.
FIXED-IN:2.15.97 (KDE 15.03.97)

M  +1    -1    umbrello/classifier.cpp
M  +1    -1    umbrello/classifierlistitem.cpp
M  +1    -3    umbrello/package.cpp
M  +2    -0    umbrello/umldoc.cpp
M  +1    -1    umbrello/umlobject.cpp
M  +2    -1    umbrello/umlobject.h


You are receiving this mail because:
You are the assignee for the bug.

More information about the umbrello-devel mailing list