mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
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:
parent
476ac6951f
commit
911cb5cb9b
|
@ -430,6 +430,9 @@ void CAutoMapper::ProceedLocalized(CLayerTiles *pLayer, int ConfigID, int Seed,
|
||||||
out->m_Flags = in->m_Flags;
|
out->m_Flags = in->m_Flags;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(pUpdateLayer)
|
||||||
|
delete pUpdateLayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CAutoMapper::Proceed(CLayerTiles *pLayer, int ConfigID, int Seed, int SeedOffsetX, int SeedOffsetY)
|
void CAutoMapper::Proceed(CLayerTiles *pLayer, int ConfigID, int Seed, int SeedOffsetX, int SeedOffsetY)
|
||||||
|
|
Loading…
Reference in a new issue