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/imbuf
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/imbuf')
-rw-r--r--source/blender/imbuf/intern/thumbs_blend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/thumbs_blend.c b/source/blender/imbuf/intern/thumbs_blend.c
index 1d0964ebb62..a338ea599f8 100644
--- a/source/blender/imbuf/intern/thumbs_blend.c
+++ b/source/blender/imbuf/intern/thumbs_blend.c
@@ -68,7 +68,7 @@ ImBuf *IMB_thumb_load_blend(const char *blen_path, const char *blen_group, const
printf("%s: error, found %d items, %d previews\n", __func__, nnames, nprevs);
}
BLI_linklist_free(previews, BKE_previewimg_freefunc);
- BLI_linklist_free(names, free);
+ BLI_linklist_free(names, MEM_freeN);
return ima;
}
@@ -93,7 +93,7 @@ ImBuf *IMB_thumb_load_blend(const char *blen_path, const char *blen_group, const
}
BLI_linklist_free(previews, BKE_previewimg_freefunc);
- BLI_linklist_free(names, free);
+ BLI_linklist_free(names, MEM_freeN);
}
else {
BlendThumbnail *data;