[Bf-blender-cvs] [1591247] master: Fix for unfreed memory due to unnecessary early exit in the free function.

Lukas Tönne noreply at git.blender.org
Mon Feb 2 14:22:59 CET 2015


Commit: 159124726e8ab9c0143f264aebe2b0b3563d819f
Author: Lukas Tönne
Date:   Mon Feb 2 13:37:35 2015 +0100
Branches: master
https://developer.blender.org/rB159124726e8ab9c0143f264aebe2b0b3563d819f

Fix for unfreed memory due to unnecessary early exit in the free
function.

===================================================================

M	source/blender/blenkernel/intern/particle_system.c

===================================================================

diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index 8c0840a..9c28672 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -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)




More information about the Bf-blender-cvs mailing list