fix smoke memory leak with OpenMP disabled.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 20 Nov 2010 07:40:50 +0000 (07:40 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 20 Nov 2010 07:40:50 +0000 (07:40 +0000)
intern/smoke/intern/WTURBULENCE.cpp

index 917c510348aba94fbac94a394c38ccaaf9cd7ec5..1248b6957a2fc4544a24d6f02b67f2e21f6172c5 100644 (file)
@@ -958,8 +958,8 @@ void WTURBULENCE::stepTurbulenceFull(float dtOrg, float* xvel, float* yvel, floa
   for (int i = 1; i < threadval; i++) 
     if (maxVelMag < maxVelMagThreads[i]) 
       maxVelMag = maxVelMagThreads[i];
-  delete [] maxVelMagThreads;
 #endif
+  delete [] maxVelMagThreads;
 
 
   // prepare density for an advection