diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-31 08:55:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-31 08:55:57 +0400 |
commit | 7cb68f89ed0cef852ddd27d62d519c21a0a89b32 (patch) | |
tree | 54a960665695648559bce6cce1abc1c64a3d5b66 /source | |
parent | 66a1259153100aeebb4319ed50f517d7266f780d (diff) |
fix for using freed memory in ED_area_newspace() caused by loading webskategirl_bullet.blend and rendering which created a new image space.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/screen/area.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index aca9a401321..5a80799fc3b 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1087,6 +1087,9 @@ void ED_area_newspace(bContext *C, ScrArea *sa, int type) if(sl && sl->regionbase.first==NULL) { st->free(sl); BLI_freelinkN(&sa->spacedata, sl); + if(slold == sl) { + slold= NULL; + } sl= NULL; } |