forked from bartvdbraak/blender
Fix #25241: Wordwrap memory leak /w Undo
Looks like drawcache shouldn't be freed when restoring screen because spaces aren't freeing and could still use caches.
This commit is contained in:
parent
a6855c9c21
commit
143573f507
@ -4947,8 +4947,6 @@ void lib_link_screen_restore(Main *newmain, bScreen *curscreen, Scene *curscene)
|
||||
|
||||
st->text= restore_pointer_by_name(newmain, (ID *)st->text, 1);
|
||||
if(st->text==NULL) st->text= newmain->text.first;
|
||||
|
||||
st->drawcache= NULL;
|
||||
}
|
||||
else if(sl->spacetype==SPACE_SCRIPT) {
|
||||
SpaceScript *scpt= (SpaceScript *)sl;
|
||||
|
Loading…
Reference in New Issue
Block a user