Bugfix #25010
authorTon Roosendaal <ton@blender.org>
Thu, 2 Dec 2010 18:27:04 +0000 (18:27 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 2 Dec 2010 18:27:04 +0000 (18:27 +0000)
When loading files without UI (quit.blend) you got memory-free errors
for fileselect. Pointers were NULLed where not needed.

source/blender/blenloader/intern/readfile.c

index 7861e771f8b9b86db62269dac290aa1a7982f347..50943e8374e16953301549ed62d1e55314c120f1 100644 (file)
@@ -4882,10 +4882,6 @@ void lib_link_screen_restore(Main *newmain, bScreen *curscreen, Scene *curscene)
                                else if(sl->spacetype==SPACE_FILE) {
                                        
                                        SpaceFile *sfile= (SpaceFile *)sl;
-                                       sfile->files= NULL;
-                                       sfile->folders_prev= NULL;
-                                       sfile->folders_next= NULL;
-                                       sfile->params= NULL;
                                        sfile->op= NULL;
                                }
                                else if(sl->spacetype==SPACE_IMASEL) {