Revision: 47703
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47703
Author:   campbellbarton
Date:     2012-06-10 20:14:15 +0000 (Sun, 10 Jun 2012)
Log Message:
-----------
correct freeing C++ arrays.

Modified Paths:
--------------
    trunk/blender/intern/smoke/intern/WTURBULENCE.cpp
    
trunk/blender/source/blender/compositor/operations/COM_ConvolutionFilterOperation.cpp
    
trunk/blender/source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cpp

Modified: trunk/blender/intern/smoke/intern/WTURBULENCE.cpp
===================================================================
--- trunk/blender/intern/smoke/intern/WTURBULENCE.cpp   2012-06-10 20:01:48 UTC 
(rev 47702)
+++ trunk/blender/intern/smoke/intern/WTURBULENCE.cpp   2012-06-10 20:14:15 UTC 
(rev 47703)
@@ -511,7 +511,7 @@
         if (obstacles[index])
           obstacles[index] = 1; // DG TODO ? animated obstacle flag?
 
-  free(obstacles);
+  delete [] obstacles;
 }
 
 
//////////////////////////////////////////////////////////////////////////////////////////

Modified: 
trunk/blender/source/blender/compositor/operations/COM_ConvolutionFilterOperation.cpp
===================================================================
--- 
trunk/blender/source/blender/compositor/operations/COM_ConvolutionFilterOperation.cpp
       2012-06-10 20:01:48 UTC (rev 47702)
+++ 
trunk/blender/source/blender/compositor/operations/COM_ConvolutionFilterOperation.cpp
       2012-06-10 20:14:15 UTC (rev 47703)
@@ -61,7 +61,7 @@
        this->inputOperation = NULL;
        this->inputValueOperation = NULL;
        if (this->filter) {
-               delete this->filter;
+               delete [] this->filter;
                this->filter = NULL;
        }
 }

Modified: 
trunk/blender/source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cpp
===================================================================
--- 
trunk/blender/source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cpp
  2012-06-10 20:01:48 UTC (rev 47702)
+++ 
trunk/blender/source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cpp
  2012-06-10 20:14:15 UTC (rev 47703)
@@ -1220,7 +1220,7 @@
                
do_createEdgeLocationBuffer(t,rw,lres,res,gbuf,&innerEdgeOffset,&outerEdgeOffset,isz,gsz);
                
do_fillGradientBuffer(rw,res,gbuf,isz,osz,gsz,innerEdgeOffset,outerEdgeOffset);
                
-               delete gbuf;          // free the gradient index buffer
+               delete [] gbuf;          // free the gradient index buffer
        }
 }
 

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

Reply via email to