CAutoMapper: Delete pUpdateLayer

/media/ddnet/src/game/editor/auto_map.cpp:433:1: warning: Potential leak of memory pointed to by 'pUpdateLayer' [clang-analyzer-cplusplus.NewDeleteLeaks]
}
^
This commit is contained in:
def 2020-10-12 15:25:46 +02:00
parent 476ac6951f
commit 911cb5cb9b

View file

@ -430,6 +430,9 @@ void CAutoMapper::ProceedLocalized(CLayerTiles *pLayer, int ConfigID, int Seed,
out->m_Flags = in->m_Flags;
}
}
if(pUpdateLayer)
delete pUpdateLayer;
}
void CAutoMapper::Proceed(CLayerTiles *pLayer, int ConfigID, int Seed, int SeedOffsetX, int SeedOffsetY)