diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-14 14:55:49 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-14 14:55:49 +0300 |
commit | 21e01ccac356a9d8e9dee01c48db54e70ededec7 (patch) | |
tree | ec94ffdec13b44975829e5be076c6b69e0f6582b /source | |
parent | fd1c8aa62ee7abb7a405d2de23b7907cab4a30c3 (diff) |
2.5
Second attempt at fixing crashing when merging spaces after splitting them.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/screen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/screen.c b/source/blender/blenkernel/intern/screen.c index f4c5ea1ea5e..c9e1521a90e 100644 --- a/source/blender/blenkernel/intern/screen.c +++ b/source/blender/blenkernel/intern/screen.c @@ -109,14 +109,15 @@ void BKE_spacedata_freelist(ListBase *lb) SpaceType *st= BKE_spacetype_from_id(sl->spacetype); sln= sl->next; - if(st && st->free) - st->free(sl); /* regions for pushed spaces */ for(ar=sl->regionbase.first; ar; ar=arn) { arn= ar->next; BKE_area_region_free(ar); } BLI_freelistN(&sl->regionbase); + + if(st && st->free) + st->free(sl); } BLI_freelistN(lb); |