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
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2011-03-16 21:21:31 +0300
committerJanne Karhu <jhkarh@gmail.com>2011-03-16 21:21:31 +0300
commit6dda182a76fed9c86ac9c159808f90cd341d65be (patch)
treed412fbbb7304936da7e0b4a3a5a65f1c98ea7400 /source/blender/blenkernel/intern/texture.c
parentbcee2343ead4dd2d737ca8add4d9264f111da0bc (diff)
Fix for [#26520] Point Density turbulence not accessible in Texture Properties.
* Mistake in the ui file. * Also found a possible memory leak.
Diffstat (limited to 'source/blender/blenkernel/intern/texture.c')
-rw-r--r--source/blender/blenkernel/intern/texture.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c
index 1d5840765bc..12aef5f4b29 100644
--- a/source/blender/blenkernel/intern/texture.c
+++ b/source/blender/blenkernel/intern/texture.c
@@ -1379,7 +1379,10 @@ void BKE_free_pointdensitydata(PointDensity *pd)
MEM_freeN(pd->point_data);
pd->point_data = NULL;
}
- if(pd->coba) MEM_freeN(pd->coba);
+ if(pd->coba) {
+ MEM_freeN(pd->coba);
+ pd->coba = NULL;
+ }
}
void BKE_free_pointdensity(PointDensity *pd)