Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-06-11 00:14:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-11 00:14:15 +0400
commit9c504f6db28febabc685517d1d0c329903470963 (patch)
tree5bcff1980fd8becb850cb364250d671c2bc8e39b /intern
parent51d9bf725dd8892b339f56553f8734aeefb17354 (diff)
correct freeing C++ arrays.
Diffstat (limited to 'intern')
-rw-r--r--intern/smoke/intern/WTURBULENCE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/smoke/intern/WTURBULENCE.cpp b/intern/smoke/intern/WTURBULENCE.cpp
index 83bec466c9f..671198065e8 100644
--- a/intern/smoke/intern/WTURBULENCE.cpp
+++ b/intern/smoke/intern/WTURBULENCE.cpp
@@ -511,7 +511,7 @@ void WTURBULENCE::computeEnergy(float *_energy, float* xvel, float* yvel, float*
if (obstacles[index])
obstacles[index] = 1; // DG TODO ? animated obstacle flag?
- free(obstacles);
+ delete [] obstacles;
}
//////////////////////////////////////////////////////////////////////////////////////////