Fix memory leaks.
This commit is contained in:
parent
55ba30e785
commit
807964e019
|
@ -143,6 +143,7 @@ auto VPLayout::TileFactory() const -> VPTileFactory *
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VPLayout::SetTileFactory(VPTileFactory *newTileFactory)
|
void VPLayout::SetTileFactory(VPTileFactory *newTileFactory)
|
||||||
{
|
{
|
||||||
|
delete m_tileFactory;
|
||||||
m_tileFactory = newTileFactory;
|
m_tileFactory = newTileFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user