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:
Sergey Sharybin 2010-12-15 21:25:54 +00:00
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;