diff options
author | Julian Eisel <julian@blender.org> | 2020-12-08 14:56:11 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-12-08 14:56:11 +0300 |
commit | 2a4fe88c13a1cb5bd79787e17eeaafec01c4d294 (patch) | |
tree | 95304deb9e1c3085062da219aa1c68d48bd22419 /source/blender/editors/space_file | |
parent | 296bc35638605b6172ccd058628e0d27258a5f5f (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/space_file')
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 2 |
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; } |