free resources on app destruction

This commit is contained in:
2019-02-24 12:31:53 +01:00
parent 420e0a8c2a
commit 3d1412aee2
13 changed files with 66 additions and 6 deletions

View File

@@ -523,3 +523,14 @@ void NodeCanvas::reset_camera()
m_canvas->m_cam_fov = 85;
m_canvas->m_pan = {0, 0};
}
void NodeCanvas::destroy_immediate()
{
Node::destroy_immediate();
m_blender_rtt.destroy();
m_cache_rtt.destroy();
m_blender_bg.destroy();
m_face_plane.destroy();
m_line.destroy();
m_grid.destroy();
}