Fixing the initglobals leak in the Blenderplayer (G.main reference was being reassigned before it was freed).

This commit is contained in:
2011-05-29 04:15:35 +00:00
parent fc3904d7b3
commit ebdca474b5

View File

@@ -62,7 +62,8 @@ extern "C"
#include "BKE_global.h"
#include "BKE_icons.h"
#include "BKE_node.h"
#include "BKE_report.h"
#include "BKE_report.h"
#include "BKE_library.h"
#include "BLI_blenlib.h"
#include "DNA_scene_types.h"
#include "DNA_userdef_types.h"
@@ -404,6 +405,9 @@ int main(int argc, char** argv)
initglobals();
// We load our own G.main, so free the one that initglobals() gives us
free_main(G.main);
IMB_init();
// Setup builtin font for BLF (mostly copied from creator.c, wm_init_exit.c and interface_style.c)