Skip to content

Commit

Permalink
Merge pull request #676 from ulteq/segfaultOnExitFix
Browse files Browse the repository at this point in the history
[Bugfix] Prevents segfault on exit
  • Loading branch information
ulteq committed Jan 31, 2016
2 parents 785fb55 + 5d822e6 commit 7cebd44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/main/main_sim/MainThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,8 @@ void MainThread::Go()
scene_manager->destroyCamera(camera);
RoR::Application::GetOgreSubsystem()->GetOgreRoot()->destroySceneManager(scene_manager);
#ifdef ROR_USE_OGRE_1_9
delete overlay_system;
// Produces a segfault
// delete overlay_system;
#endif

Application::DestroyContentManager();
Expand Down

0 comments on commit 7cebd44

Please sign in to comment.