Revision: 19010 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19010 Author: ton Date: 2009-02-17 17:33:08 +0100 (Tue, 17 Feb 2009)
Log Message: ----------- 2.5 Bug: cleanup in space_file copy I did missed a NULL check :) Modified Paths: -------------- branches/blender2.5/blender/source/blender/editors/space_file/space_file.c Modified: branches/blender2.5/blender/source/blender/editors/space_file/space_file.c =================================================================== --- branches/blender2.5/blender/source/blender/editors/space_file/space_file.c 2009-02-17 15:53:52 UTC (rev 19009) +++ branches/blender2.5/blender/source/blender/editors/space_file/space_file.c 2009-02-17 16:33:08 UTC (rev 19010) @@ -142,12 +142,14 @@ /* clear or remove stuff from old */ sfilen->op = NULL; /* file window doesn't own operators */ - sfilen->params= MEM_dupallocN(sfileo->params); + sfilen->files = filelist_new(); - sfilen->files = filelist_new(); - filelist_setdir(sfilen->files, sfilen->params->dir); - filelist_settype(sfilen->files, sfilen->params->type); - + if(sfileo->params) { + sfilen->params= MEM_dupallocN(sfileo->params); + + filelist_setdir(sfilen->files, sfilen->params->dir); + filelist_settype(sfilen->files, sfilen->params->type); + } return (SpaceLink *)sfilen; } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs