diff -r dba9303a1a5c -r c810a11d11d9 xml.cpp --- a/xml.cpp Wed May 18 07:39:58 2005 +0000 +++ b/xml.cpp Mon May 23 15:28:20 2005 +0000 @@ -523,6 +523,7 @@ { QColor col; bool okx; + bool success=false; XLinkObj *xlo=new XLinkObj (mc->getCanvas()); if (!a.value( "color").isEmpty() ) { @@ -548,13 +549,13 @@ { xlo->setEnd ((BranchObj*)(lmo)); xlo->activate(); - return true; } } - return true; // Not all branches there yet, no error + success=true; // Not all branches there yet, no error } } - return false; + delete (xlo); + return success; } bool mapBuilderHandler::readHtmlAttr (const QXmlAttributes& a)