[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26187] trunk/blender/intern/guardedalloc/ intern/mallocn.c: Fix MEM_testN not unlocking mutex correctly, unlikely to lead to
Brecht Van Lommel
brecht at blender.org
Fri Jan 22 11:56:50 CET 2010
Revision: 26187
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26187
Author: blendix
Date: 2010-01-22 11:56:50 +0100 (Fri, 22 Jan 2010)
Log Message:
-----------
Fix MEM_testN not unlocking mutex correctly, unlikely to lead to
problems in practice but might as well fix.
Modified Paths:
--------------
trunk/blender/intern/guardedalloc/intern/mallocn.c
Modified: trunk/blender/intern/guardedalloc/intern/mallocn.c
===================================================================
--- trunk/blender/intern/guardedalloc/intern/mallocn.c 2010-01-22 10:52:37 UTC (rev 26186)
+++ trunk/blender/intern/guardedalloc/intern/mallocn.c 2010-01-22 10:56:50 UTC (rev 26187)
@@ -539,8 +539,10 @@
if (membl) membl = MEMNEXT(membl);
while(membl) {
- if (vmemh == membl+1)
+ if (vmemh == membl+1) {
+ mem_unlock_thread();
return 1;
+ }
if(membl->next)
membl= MEMNEXT(membl->next);
More information about the Bf-blender-cvs
mailing list