Cleanup: set fd->mainlist to NULL at the end of blo_read_file_internal().

This is a local var, do not try to use it later!
This commit is contained in:
2015-08-29 16:47:32 +02:00
parent 95ed5d4437
commit 0952a8e44a

View File

@@ -8347,6 +8347,8 @@ BlendFileData *blo_read_file_internal(FileData *fd, const char *filepath)
link_global(fd, bfd); /* as last */
fd->mainlist = NULL; /* Safety, this is local variable, shall not be used afterward. */
return bfd;
}