From 2a4fe88c13a1cb5bd79787e17eeaafec01c4d294 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Tue, 8 Dec 2020 12:56:11 +0100 Subject: 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. --- source/blender/editors/space_file/filelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_file') 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; } -- cgit v1.2.3