Coverity Fixes

*** CID 153360:  Control flow issues  (UNREACHABLE)
*** CID 153359:  Uninitialized members  (UNINIT_CTOR)
*** CID 153358:  Resource leaks  (RESOURCE_LEAK)
*** CID 153354:  Null pointer dereferences  (FORWARD_NULL)
This commit is contained in:
WandererFan
2016-10-07 08:12:17 -04:00
committed by Yorik van Havre
parent 0356da3882
commit 1e66add845
4 changed files with 11 additions and 6 deletions

View File

@@ -89,7 +89,10 @@ DrawProjGroupItem::~DrawProjGroupItem()
void DrawProjGroupItem::onDocumentRestored()
{
setAutoPos(false); //if restoring from file, use X,Y from file, not auto!
DrawProjGroupItem::execute();
App::DocumentObjectExecReturn* rc = DrawProjGroupItem::execute();
if (rc) {
delete rc;
}
}