Fix for unfreed memory due to unnecessary early exit in the free
function.
This commit is contained in:
parent
961b7e78b4
commit
159124726e
|
@ -473,9 +473,6 @@ void psys_tasks_free(ParticleTask *tasks, int numtasks)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (numtasks == 0)
|
||||
return;
|
||||
|
||||
/* threads */
|
||||
for (i = 0; i < numtasks; ++i) {
|
||||
if (tasks[i].rng)
|
||||
|
|
Loading…
Reference in New Issue