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:
authorJacques Lucke <jacques@blender.org>2020-07-24 13:26:11 +0300
committerJacques Lucke <jacques@blender.org>2020-07-24 13:26:11 +0300
commit236ca8fbe84575504f6ae80aec63c8059b875ef0 (patch)
tree5a889765ba6363b99b1d27231594592013f3263f /source/creator
parent38863924305367eaae65d9447f8a306b86d6ea44 (diff)
Allocator: make leak detection work with static variables
When definining static variables that own memory, you should use the "construct on first use" idiom. Otherwise, you'll get a warning when Blender exits. More details are provided in D8354. Differential Revision: https://developer.blender.org/D8354
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index abc443425a8..9268ed15923 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -295,6 +295,7 @@ int main(int argc,
break;
}
}
+ MEM_initialize_memleak_detection();
}
#ifdef BUILD_DATE