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:
-rw-r--r--source/blender/blenlib/BLI_resource_scope.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_resource_scope.hh b/source/blender/blenlib/BLI_resource_scope.hh
index c3c0af4af50..b7720b52ecc 100644
--- a/source/blender/blenlib/BLI_resource_scope.hh
+++ b/source/blender/blenlib/BLI_resource_scope.hh
@@ -141,7 +141,7 @@ class ResourceScope : NonCopyable, NonMovable {
*/
template<typename Func> void add_destruct_call(Func func, const char *name)
{
- void *buffer = m_allocator.allocate(sizeof(func), alignof(func));
+ void *buffer = m_allocator.allocate(sizeof(Func), alignof(Func));
new (buffer) Func(std::move(func));
this->add(
buffer, [](void *data) { (*(Func *)data)(); }, name);