diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-23 04:08:02 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-23 04:08:02 +0300 |
commit | cc9d3786f81b01ce1cef32ce6746b6e3096331e2 (patch) | |
tree | f632b12fd4986b6093b3d2fa17bb2d38b7a25c1a /source | |
parent | 892be750e58e9824b573a86d8a2c49e43ddbbfd3 (diff) |
2.5: fix a crash switching to space types with old space data.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/screen/area.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 1c47d9302a1..41212de118a 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -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; } |