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:
Sergey Sharybin 2015-02-17 15:50:12 +05:00
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
1 changed files with 3 additions and 1 deletions

View File

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