Fix malloc/delete mismatch

This commit is contained in:
Vlj
2014-08-13 23:52:47 +02:00
parent b5016ba85e
commit c7a4d45d08

View File

@@ -52,9 +52,9 @@ ParticleSystemProxy::ParticleSystemProxy(bool createDefaultEmitter,
ParticleSystemProxy::~ParticleSystemProxy()
{
if (InitialValues)
delete InitialValues;
free(InitialValues);
if (ParticleParams)
delete ParticleParams;
free(ParticleParams);
if (!m_first_execution)
cleanGL();
if (heighmapbuffer)