mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix memory leaks due to messed up memory handling for particles as well as their spawners
This commit is contained in:
parent
e201620ee1
commit
63867b1a37
5 changed files with 285 additions and 184 deletions
|
@ -248,6 +248,7 @@ Client::Client(
|
|||
device->getSceneManager(),
|
||||
tsrc, this, device
|
||||
),
|
||||
m_particle_manager(&m_env),
|
||||
m_con(PROTOCOL_ID, 512, CONNECTION_TIMEOUT, ipv6, this),
|
||||
m_device(device),
|
||||
m_server_ser_ver(SER_FMT_VER_INVALID),
|
||||
|
@ -2854,6 +2855,11 @@ MtEventManager* Client::getEventManager()
|
|||
return m_event;
|
||||
}
|
||||
|
||||
ParticleManager* Client::getParticleManager()
|
||||
{
|
||||
return &m_particle_manager;
|
||||
}
|
||||
|
||||
scene::IAnimatedMesh* Client::getMesh(const std::string &filename)
|
||||
{
|
||||
std::map<std::string, std::string>::const_iterator i =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue