[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Fri Dec 1 19:38:15 UTC 2006


SVN commit 609711 by okellogg:

Apply FixSegfaultOnDocumentCloseInToolbarStateArrow.diff by Achim Spangler at
http://www.geeksoc.org/~jr/umbrello/uml-devel/9871.html
> I tried the explicit deletion of m_pToolBarStateFactory before the UMLView
> destructor deletes the QCanvas. AND it WORKS!


 M  +3 -0      umlview.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umlview.cpp #609710:609711
@@ -192,6 +192,9 @@
     blockSignals( true );
     removeAllWidgets();
 
+    delete m_pToolBarStateFactory;
+    m_pToolBarStateFactory = NULL;
+
     // Qt Doc for QCanvasView::~QCanvasView () states:
     // "Destroys the canvas view. The associated canvas is not deleted."
     // we should do it now




More information about the umbrello-devel mailing list