Fix T43706: Creating a directory in the file browser (by typing it in the file path) crashes Blender
Issue was caused by 2e9105c
, free() does nothing if pointer is NULL, but guarded
allocator expects you to not free NULL.
This commit is contained in:
parent
2c1b0536c9
commit
7307f3b485
Notes:
blender-bot
2023-10-13 01:54:23 +02:00
Referenced by issue #43706, Creating a directory in the file browser (by typing it in the file path) crashes Blender
|
@ -459,7 +459,9 @@ void BLI_filelist_free(struct direntry *filelist, unsigned int nrentries, void (
|
|||
free_poin(entry->poin);
|
||||
}
|
||||
|
||||
MEM_freeN(filelist);
|
||||
if (filelist != NULL) {
|
||||
MEM_freeN(filelist);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue