free_bvhtree_from_mesh was incorrectly useing sizeof() when clearing memory.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 24 Jun 2011 05:34:03 +0000 (05:34 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 24 Jun 2011 05:34:03 +0000 (05:34 +0000)
source/blender/blenkernel/intern/bvhutils.c

index cc45abb5998b61f9cf099d326789483be3f4906d..c3aeb4409387d4cac5b48099c11781a938d5760e 100644 (file)
@@ -719,7 +719,7 @@ void free_bvhtree_from_mesh(struct BVHTreeFromMesh *data)
                if(!data->cached)
                        BLI_bvhtree_free(data->tree);
 
-               memset( data, 0, sizeof(data) );
+               memset( data, 0, sizeof(*data) );
        }
 }