[Uml-devel] kdesdk/umbrello/umbrello
Sebastian Stein
seb.kde at hpfsc.de
Tue Jul 13 11:00:07 UTC 2004
CVS commit by sstein:
and some more leaks:
==15535== 32 bytes in 1 blocks are possibly lost in loss record 97 of 230
==15535== at 0x3C01D54C: operator new(unsigned) (vg_replace_malloc.c:107)
==15535== by 0x80FEF7F: UMLClass::getFilteredAttributeList() (class.cpp:404)
==15535== by 0x8117EF8: CodeGenerator::findObjectsRelated(UMLClassifier*, QPtrList<UMLClassifier>&) (codegenerator.cpp:648)
==15535== by 0x825C580: CPPSourceCodeDocument::updateContent() (cppsourcecodedocument.cpp:202)
==15535== 1312 bytes in 41 blocks are definitely lost in loss record 200 of 230
==15535== at 0x3C01D54C: operator new(unsigned) (vg_replace_malloc.c:107)
==15535== by 0x80FEF7F: UMLClass::getFilteredAttributeList() (class.cpp:404)
==15535== by 0x8117EF8: CodeGenerator::findObjectsRelated(UMLClassifier*, QPtrList<UMLClassifier>&) (codegenerator.cpp:648)
==15535== by 0x8264BDC: CPPHeaderCodeDocument::updateContent() (cppheadercodedocument.cpp:473)
==15535== 5832 bytes in 81 blocks are definitely lost in loss record 215 of 230
==15535== at 0x3C01D54C: operator new(unsigned) (vg_replace_malloc.c:107)
==15535== by 0x825BFFB: CPPSourceCodeDocument::newCodeComment() (cppsourcecodedocument.cpp:127)
==15535== by 0x811E29B: CodeParameter::initFields(ClassifierCodeDocument*, UMLObject*) (codeparameter.cpp:284)
==15535== by 0x811D0BA: CodeParameter::CodeParameter(ClassifierCodeDocument*, UMLObject*) (codeparameter.cpp:30)
==15535== 5832 bytes in 81 blocks are definitely lost in loss record 216 of 230
==15535== at 0x3C01D54C: operator new(unsigned) (vg_replace_malloc.c:107)
==15535== by 0x8263DFB: CPPHeaderCodeDocument::newCodeComment() (cppheadercodedocument.cpp:356)
==15535== by 0x811E29B: CodeParameter::initFields(ClassifierCodeDocument*, UMLObject*) (codeparameter.cpp:284)
==15535== by 0x811D0BA: CodeParameter::CodeParameter(ClassifierCodeDocument*, UMLObject*) (codeparameter.cpp:30)
M +1 -0 classifiercodedocument.cpp 1.29
M +1 -0 codegenerator.cpp 1.50
M +12 -1 codeparameter.cpp 1.11
--- kdesdk/umbrello/umbrello/codeparameter.cpp #1.10:1.11
@@ -28,8 +28,12 @@ CodeParameter::CodeParameter ( Classifie
: QObject ( (QObject*) parentObject, "ACodeParam")
{
+ m_comment = 0;
initFields( parentDoc, parentObject );
}
-CodeParameter::~CodeParameter ( ) { }
+CodeParameter::~CodeParameter ( ) {
+ if (m_comment != 0)
+ delete m_comment;
+}
//
@@ -109,5 +113,10 @@ QString CodeParameter::getInitialValue (
*/
void CodeParameter::setComment ( CodeComment * object ) {
+ if (m_comment != 0)
+ delete m_comment;
+
m_comment = object;
+
+ return;
}
@@ -282,4 +291,6 @@ void CodeParameter::initFields ( Classif
m_initialValue = QString("");
+ if (m_comment != 0)
+ delete m_comment;
m_comment = m_parentDocument->newCodeComment();
m_comment->setText(getParentObject()->getDoc());
--- kdesdk/umbrello/umbrello/codegenerator.cpp #1.49:1.50
@@ -653,4 +653,5 @@ void CodeGenerator::findObjectsRelated(U
cList.append(temp);
}
+ delete atl;
}
--- kdesdk/umbrello/umbrello/classifiercodedocument.cpp #1.28:1.29
@@ -456,4 +456,5 @@ void ClassifierCodeDocument::initCodeCla
addCodeClassField(field);
}
+ delete alist;
}
More information about the umbrello-devel
mailing list