Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-02-17 13:50:12 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-02-17 13:55:18 +0300
commit7307f3b48564191dfcf2ccd71e730c41c6486289 (patch)
treee722b376a09619abd58e2d842026a3938d110d9a
parent2c1b0536c9e89eb401c422bed78edd3c35fb8b01 (diff)
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.
-rw-r--r--source/blender/blenlib/intern/storage.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index 90c4ac3bcdc..c6b65171478 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -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);
+ }
}