2.5: fix a crash switching to space types with old space data.

This commit is contained in:
Brecht Van Lommel
2008-12-23 01:08:02 +00:00
parent 892be750e5
commit cc9d3786f8

View File

@@ -602,7 +602,7 @@ void area_newspace(bContext *C, ScrArea *sa, int type)
/* old spacedata... happened during work on 2.50, remove */
if(sl && sl->regionbase.first==NULL) {
st->free(sl);
MEM_freeN(sl);
BLI_freelinkN(&sa->spacedata, sl);
sl= NULL;
}