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:
authorCampbell Barton <ideasman42@gmail.com>2018-07-10 08:10:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-10 08:10:28 +0300
commit521f188af6bfa3e47e0aa41547502960e887b064 (patch)
tree31c635b713fcd50bb583d5126770d364417ba5a6 /source/blender/blenkernel/intern/workspace.c
parent81210103104980c9052de491a0b4defd003c2d1e (diff)
Fix workspace not freeing tool properties
Diffstat (limited to 'source/blender/blenkernel/intern/workspace.c')
-rw-r--r--source/blender/blenkernel/intern/workspace.c8
1 files changed, 4 insertions, 4 deletions
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);