diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-10-16 22:52:49 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-10-16 22:52:49 +0300 |
commit | eae622d2ddf52e1755d16be570a950c5260da40b (patch) | |
tree | 725f146da93c2155d18e77e79b1f7459f0b4a401 /source/blender/blenkernel/intern | |
parent | e4f2b2be26adbb5c34231598526a270559c6e183 (diff) |
Workspace: Call BKE_viewrender_free from the right place
We should call it when we free the workspace, not when removing it.
Patch by Julian Eisel.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/workspace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/workspace.c b/source/blender/blenkernel/intern/workspace.c index 0747bde16d3..26df3a1ca8a 100644 --- a/source/blender/blenkernel/intern/workspace.c +++ b/source/blender/blenkernel/intern/workspace.c @@ -154,6 +154,7 @@ void BKE_workspace_free(WorkSpace *workspace) } BLI_freelistN(&workspace->layouts); BLI_freelistN(&workspace->transform_orientations); + BKE_viewrender_free(&workspace->view_render); } void BKE_workspace_remove(Main *bmain, WorkSpace *workspace) @@ -162,8 +163,6 @@ void BKE_workspace_remove(Main *bmain, WorkSpace *workspace) layout_next = layout->next; BKE_workspace_layout_remove(bmain, workspace, layout); } - - BKE_viewrender_free(&workspace->view_render); BKE_libblock_free(bmain, workspace); } |