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);


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to