[Bf-blender-cvs] [069fa8279d7] blender2.8: Subdiv: CCG, fix memory leak
Sergey Sharybin
noreply at git.blender.org
Thu Sep 20 16:11:26 CEST 2018
Commit: 069fa8279d7057ba937d87093364cfc943040c5c
Author: Sergey Sharybin
Date: Thu Sep 20 11:23:01 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB069fa8279d7057ba937d87093364cfc943040c5c
Subdiv: CCG, fix memory leak
Forgot to free memory used by grid to face mapping array.
===================================================================
M source/blender/blenkernel/intern/subdiv_ccg.c
===================================================================
diff --git a/source/blender/blenkernel/intern/subdiv_ccg.c b/source/blender/blenkernel/intern/subdiv_ccg.c
index 43a94c117c5..fc4e1fe9548 100644
--- a/source/blender/blenkernel/intern/subdiv_ccg.c
+++ b/source/blender/blenkernel/intern/subdiv_ccg.c
@@ -428,6 +428,7 @@ void BKE_subdiv_ccg_destroy(SubdivCCG *subdiv_ccg)
BKE_subdiv_free(subdiv_ccg->subdiv);
}
MEM_SAFE_FREE(subdiv_ccg->faces);
+ MEM_SAFE_FREE(subdiv_ccg->grid_faces);
MEM_freeN(subdiv_ccg);
}
More information about the Bf-blender-cvs
mailing list