[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sun Dec 5 03:27:01 UTC 2004


CVS commit by okellogg: 

createChildUMLObject(): Delete the UMLListViewItem when
 parse{Attribute,Operation} returns an error.


  M +3 -1      umllistview.cpp   1.127


--- kdesdk/umbrello/umbrello/umllistview.cpp  #1.126:1.127
@@ -1096,5 +1096,5 @@ void UMLListView::slotDropped(QDropEvent
         }
         UMLListViewItem *newParent = (UMLListViewItem*)item;
-        kdDebug() << "moveObj: newParent->getText() is " << newParent->getText()
+        kdDebug() << "slotDropped: newParent->getText() is " << newParent->getText()
                   << endl;
         UMLDrag::LvTypeAndID_It it(srcList);
@@ -2007,4 +2007,5 @@ void UMLListView::createChildUMLObject( 
                         kdError() << "UMLListView::createChildUMLObject(" << text << "): "
                                   << "Umbrello::parseAttribute returns " << st << endl;
+                        delete item;
                         m_bCreatingChildObject = false;
                         return;
@@ -2020,4 +2021,5 @@ void UMLListView::createChildUMLObject( 
                         kdError() << "UMLListView::createChildUMLObject(" << text << "): "
                                   << "Umbrello::parseOperation returns " << st << endl;
+                        delete item;
                         m_bCreatingChildObject = false;
                         return;






More information about the umbrello-devel mailing list