diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2010-12-31 13:56:06 +0300 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2010-12-31 13:56:06 +0300 |
commit | f0b0cce7bd295ccfbf52411abfd04789fa731c19 (patch) | |
tree | 8fda6790d86b57120c9946765dae1007a0f225a9 /source/gameengine/GamePlayer/ghost | |
parent | 23e5b79ced59dd248359e9e4fe498faa8230a29f (diff) |
Fixing a crash on exit when using the Blenderplayer on win32. When free_blender() was freeing main, main was garbage since the blend file data was already freed. So, I just replaced free_blender) with IMB_exit() and free_nodesystem(). Using free_blender() worked when I was in Linux running tests. That or I'm just gong crazy. ;)
Diffstat (limited to 'source/gameengine/GamePlayer/ghost')
-rw-r--r-- | source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp index b7f4cacf5ab..a3dc9a588c9 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp @@ -946,7 +946,8 @@ int main(int argc, char** argv) // Cleanup RNA_exit(); BLF_exit(); - free_blender(); + IMB_exit(); + free_nodesystem(); SYS_DeleteSystem(syshandle); |