2.5
Second attempt at fixing crashing when merging spaces after splitting them.
This commit is contained in:
@@ -109,14 +109,15 @@ void BKE_spacedata_freelist(ListBase *lb)
|
|||||||
SpaceType *st= BKE_spacetype_from_id(sl->spacetype);
|
SpaceType *st= BKE_spacetype_from_id(sl->spacetype);
|
||||||
sln= sl->next;
|
sln= sl->next;
|
||||||
|
|
||||||
if(st && st->free)
|
|
||||||
st->free(sl);
|
|
||||||
/* regions for pushed spaces */
|
/* regions for pushed spaces */
|
||||||
for(ar=sl->regionbase.first; ar; ar=arn) {
|
for(ar=sl->regionbase.first; ar; ar=arn) {
|
||||||
arn= ar->next;
|
arn= ar->next;
|
||||||
BKE_area_region_free(ar);
|
BKE_area_region_free(ar);
|
||||||
}
|
}
|
||||||
BLI_freelistN(&sl->regionbase);
|
BLI_freelistN(&sl->regionbase);
|
||||||
|
|
||||||
|
if(st && st->free)
|
||||||
|
st->free(sl);
|
||||||
}
|
}
|
||||||
|
|
||||||
BLI_freelistN(lb);
|
BLI_freelistN(lb);
|
||||||
|
|||||||
Reference in New Issue
Block a user