Subdiv: CCG, fix memory leak

Forgot to free memory used by grid to face mapping array.
This commit is contained in:
Sergey Sharybin 2018-09-20 11:23:01 +02:00
parent 13820ec5c1
commit 069fa8279d
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}