== Sculpt ==
[blender.git] / source / blender / blenkernel / intern / scene.c
index 88dca65f594dc46f9470319c60838577f6551969..47640ad07ae4c909b7d822a4d31cdb9209f17975 100644 (file)
@@ -659,6 +659,15 @@ void sculptsession_free(Scene *sce)
                        MEM_freeN(ss->projverts);
                if(ss->mats)
                        MEM_freeN(ss->mats);
+
+               if(ss->propset) {
+                       if(ss->propset->texdata)
+                               MEM_freeN(ss->propset->texdata);
+                       if(ss->propset->num)
+                               MEM_freeN(ss->propset->num);
+                       MEM_freeN(ss->propset);
+               }
+
                sculpt_vertexusers_free(ss);
                if(ss->texcache)
                        MEM_freeN(ss->texcache);