Fixed _sharedVoxelSystemTree deleted twice

This commit is contained in:
atlante45 2013-08-30 10:37:55 -07:00
parent fc991bf1ac
commit f21a2798ff

View file

@ -235,6 +235,8 @@ Application::Application(int& argc, char** argv, timeval &startup_time) :
Application::~Application() {
NodeList::getInstance()->removeHook(&_voxels);
NodeList::getInstance()->removeHook(this);
_sharedVoxelSystem.changeTree(new VoxelTree);
}
void Application::initializeGL() {