Remove redundant NULL check

This commit is contained in:
Campbell Barton 2014-05-15 20:13:43 +10:00
parent 42eb36ecf6
commit aafe6322fe
1 changed files with 3 additions and 4 deletions

View File

@ -1690,10 +1690,9 @@ static void emit_from_derivedmesh(Object *flow_ob, SmokeDomainSettings *sds, Smo
if (vert_vel) {
MEM_freeN(vert_vel);
}
if (dm) {
dm->needsFree = 1;
dm->release(dm);
}
dm->needsFree = 1;
dm->release(dm);
}
}