[Bf-blender-cvs] [e3068f38c8c] master: Fix memory leak and possible other issues with custom previews
Julian Eisel
noreply at git.blender.org
Mon Dec 14 14:59:36 CET 2020
Commit: e3068f38c8c8df8cf198dc694aae9cc0c6e88633
Author: Julian Eisel
Date: Mon Dec 14 14:57:30 2020 +0100
Branches: master
https://developer.blender.org/rBe3068f38c8c8df8cf198dc694aae9cc0c6e88633
Fix memory leak and possible other issues with custom previews
Mistake in 812ea9184221. Fixed that same one before in the branch, I may have
brought it back when resolving merge conflicts.
===================================================================
M source/blender/blenkernel/intern/icons.c
===================================================================
diff --git a/source/blender/blenkernel/intern/icons.c b/source/blender/blenkernel/intern/icons.c
index 58b4a8ce315..ecafed5da31 100644
--- a/source/blender/blenkernel/intern/icons.c
+++ b/source/blender/blenkernel/intern/icons.c
@@ -467,7 +467,7 @@ PreviewImage *BKE_previewimg_cached_thumbnail_read(const char *name,
}
if (!prv) {
- previewimg_deferred_create(path, source);
+ prv = previewimg_deferred_create(path, source);
force_update = true;
}
More information about the Bf-blender-cvs
mailing list