Fix for [#28672] Blender segfault after exiting a game that was opened with autoplay...
authorJoerg Mueller <nexyon@gmail.com>
Sun, 18 Sep 2011 09:46:47 +0000 (09:46 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Sun, 18 Sep 2011 09:46:47 +0000 (09:46 +0000)
Autoplay misses uninitialisation, I'm just fixing the reported crash, it still misses all other frees, but as the program exits, we don't care?

source/blender/windowmanager/intern/wm_init_exit.c

index 850de9029c9113fb209b932a452a7903dd7b5715..365301538b09813d3225afec3c76b2041027479f 100644 (file)
@@ -296,6 +296,8 @@ int WM_init_game(bContext *C)
 
                WM_operator_name_call(C, "VIEW3D_OT_game_start", WM_OP_EXEC_DEFAULT, NULL);
 
+               sound_exit();
+
                return 1;
        }
        else