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:
Bastien Montagne 2015-08-29 16:47:32 +02:00
parent 95ed5d4437
commit 0952a8e44a
1 changed files with 2 additions and 0 deletions

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;
}