Blenderplayer: Setting G.main to NULL after it's freed to avoid issues later with...
authorMitchell Stokes <mogurijin@gmail.com>
Wed, 15 Jun 2011 23:43:02 +0000 (23:43 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Wed, 15 Jun 2011 23:43:02 +0000 (23:43 +0000)
source/gameengine/GamePlayer/ghost/GPG_ghost.cpp

index 31e4b22..14048c7 100644 (file)
@@ -408,6 +408,7 @@ int main(int argc, char** argv)
 
        // We load our own G.main, so free the one that initglobals() gives us
        free_main(G.main);
+       G.main = NULL;
 
        IMB_init();