1.1 --- a/xml.cpp Wed May 18 07:39:58 2005 +0000
1.2 +++ b/xml.cpp Mon May 23 15:28:20 2005 +0000
1.3 @@ -523,6 +523,7 @@
1.4 {
1.5 QColor col;
1.6 bool okx;
1.7 + bool success=false;
1.8 XLinkObj *xlo=new XLinkObj (mc->getCanvas());
1.9 if (!a.value( "color").isEmpty() )
1.10 {
1.11 @@ -548,13 +549,13 @@
1.12 {
1.13 xlo->setEnd ((BranchObj*)(lmo));
1.14 xlo->activate();
1.15 - return true;
1.16 }
1.17 }
1.18 - return true; // Not all branches there yet, no error
1.19 + success=true; // Not all branches there yet, no error
1.20 }
1.21 }
1.22 - return false;
1.23 + delete (xlo);
1.24 + return success;
1.25 }
1.26
1.27 bool mapBuilderHandler::readHtmlAttr (const QXmlAttributes& a)