Merge with trunk r37849
[blender.git] / source / blender / blenkernel / intern / bvhutils.c
index fa6a8239282338fef71845220e7f06717ace9480..91238f20337cb2fe4787a0189b8b70caef11ddfe 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) );
        }
 }