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:
parent
95ed5d4437
commit
0952a8e44a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue