mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-25 17:43:44 +00:00
Merge pull request #628 from BeamNG/fix_cmake_crash_on_t3d_exit
Fix crash on exit T3D when build with CMake.
This commit is contained in:
commit
08e6b261a3
4 changed files with 112 additions and 4 deletions
|
|
@ -41,7 +41,8 @@ PlatformWindowManager * CreatePlatformWindowManager()
|
|||
Win32WindowManager::Win32WindowManager()
|
||||
{
|
||||
// Register in the process list.
|
||||
Process::notify(this, &Win32WindowManager::_process, PROCESS_INPUT_ORDER);
|
||||
mOnProcessSignalSlot.setDelegate( this, &Win32WindowManager::_process );
|
||||
Process::notify( mOnProcessSignalSlot, PROCESS_INPUT_ORDER );
|
||||
|
||||
// Init our list of allocated windows.
|
||||
mWindowListHead = NULL;
|
||||
|
|
@ -58,9 +59,6 @@ Win32WindowManager::Win32WindowManager()
|
|||
|
||||
Win32WindowManager::~Win32WindowManager()
|
||||
{
|
||||
// Get ourselves off the process list.
|
||||
Process::remove(this, &Win32WindowManager::_process);
|
||||
|
||||
// Kill all our windows first.
|
||||
while(mWindowListHead)
|
||||
// The destructors update the list, so this works just fine.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue