Bugfix for memory leak with particle roughness vertex groups.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 2 Jan 2008 17:57:18 +0000 (17:57 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 2 Jan 2008 17:57:18 +0000 (17:57 +0000)
source/blender/blenkernel/intern/particle_system.c

index ac06f75737ff714f014a3eab2968997272c22364..e8dcfc036c9acc27b20cc0c2f11d0672987e9725 100644 (file)
@@ -1333,7 +1333,7 @@ void psys_threads_free(ParticleThread *threads)
        if(ctx->vg_rough1)
                MEM_freeN(ctx->vg_rough1);
        if(ctx->vg_rough2)
-               MEM_freeN(ctx->vg_roughe);
+               MEM_freeN(ctx->vg_rough2);
        if(ctx->vg_roughe)
                MEM_freeN(ctx->vg_roughe);