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:
authorJulian Eisel <julian@blender.org>2020-12-08 14:56:11 +0300
committerJulian Eisel <julian@blender.org>2020-12-08 14:56:11 +0300
commit2a4fe88c13a1cb5bd79787e17eeaafec01c4d294 (patch)
tree95304deb9e1c3085062da219aa1c68d48bd22419 /source/blender/editors
parent296bc35638605b6172ccd058628e0d27258a5f5f (diff)
Cleanup: Use guarded allocator for data-block names returned from file reading
Direcly using the C library allocator functions is usually avoided in favor of our guarded allocator. It's more useful when debugging.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_file/filelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 9e51b6ca4ba..b6d016aca7c 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -2620,7 +2620,7 @@ static int filelist_readjob_list_lib(const char *root, ListBase *entries, const
nbr_entries++;
}
- BLI_linklist_free(names, free);
+ BLI_linklist_free(names, MEM_freeN);
return nbr_entries;
}