diff options
author | Ton Roosendaal <ton@blender.org> | 2009-02-20 13:39:31 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-02-20 13:39:31 +0300 |
commit | 35de68c67259ad6ad9cfb14faf77bea398d39345 (patch) | |
tree | a6805c42f632975e6289b310356cccae2ac840a7 | |
parent | 2d088f5c8b137f07821b2e10bca01351e348c4da (diff) |
2.5
Bugfix: on closing wm, it was using a free'd pointer to screen.
-rw-r--r-- | source/blender/windowmanager/intern/wm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index e209a9e658f..200d2652af3 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -150,6 +150,7 @@ void wm_close_and_free(bContext *C, wmWindowManager *wm) while((win= wm->windows.first)) { BLI_remlink(&wm->windows, win); + win->screen= NULL; /* prevent draw clear to use screen */ wm_draw_window_clear(win); wm_window_free(C, win); } |