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

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


Commit: c2bc6cf21d37d073828ae3b374d69f0f6af319b8
Author: Lukas Tönne
Date:   Mon Feb 2 13:37:35 2015 +0100
Branches: temp_custom_loop_normals
https://developer.blender.org/rBc2bc6cf21d37d073828ae3b374d69f0f6af319b8

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