Fixed memory leak.

This commit is contained in:
hiker 2015-07-01 08:58:15 +10:00
parent 576270bb17
commit 8aabb30687

View File

@ -309,7 +309,7 @@ void Track::cleanup()
m_object_physics_only_nodes.clear(); m_object_physics_only_nodes.clear();
irr_driver->removeNode(m_sun); irr_driver->removeNode(m_sun);
m_sun->drop();
delete m_track_mesh; delete m_track_mesh;
m_track_mesh = NULL; m_track_mesh = NULL;