Simulation: fix memory leak
This commit is contained in:
parent
1dd381828f
commit
63db971a00
|
@ -3850,6 +3850,10 @@ static void write_simulation(BlendWriter *writer, Simulation *simulation, const
|
|||
layers,
|
||||
CD_MASK_ALL);
|
||||
|
||||
if (layers != NULL && layers != layers_buff) {
|
||||
MEM_freeN(layers);
|
||||
}
|
||||
|
||||
write_pointcaches(writer, &particle_state->ptcaches);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue