[Bf-blender-cvs] [521f188af6b] blender2.8: Fix workspace not freeing tool properties
Campbell Barton
noreply at git.blender.org
Tue Jul 10 07:10:55 CEST 2018
Commit: 521f188af6bfa3e47e0aa41547502960e887b064
Author: Campbell Barton
Date: Tue Jul 10 07:10:28 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB521f188af6bfa3e47e0aa41547502960e887b064
Fix workspace not freeing tool properties
===================================================================
M source/blender/blenkernel/intern/workspace.c
===================================================================
diff --git a/source/blender/blenkernel/intern/workspace.c b/source/blender/blenkernel/intern/workspace.c
index 783baebd525..a5e93c8d765 100644
--- a/source/blender/blenkernel/intern/workspace.c
+++ b/source/blender/blenkernel/intern/workspace.c
@@ -165,10 +165,10 @@ void BKE_workspace_free(WorkSpace *workspace)
tref_next = tref->next;
if (tref->runtime) {
MEM_freeN(tref->runtime);
- if (tref->properties) {
- IDP_FreeProperty(tref->properties);
- MEM_freeN(tref->properties);
- }
+ }
+ if (tref->properties) {
+ IDP_FreeProperty(tref->properties);
+ MEM_freeN(tref->properties);
}
}
BLI_freelistN(&workspace->tools);
More information about the Bf-blender-cvs
mailing list