diff --git a/sweet_geometry.c b/sweet_geometry.c index 3bb81e9..b1e5e1e 100644 --- a/sweet_geometry.c +++ b/sweet_geometry.c @@ -414,7 +414,7 @@ sweet_geometry_subdivide_mesh_vt (unsigned int nb_iterations, float scale, (*mesh_tcoord)[j+1] = t.uv[i].y; } - free_all (&map, &v, &t, root, *mesh_vertices, *mesh_indices, *mesh_tcoord); + free_all (&map, &v, &t, root, NULL, NULL, NULL); (*count_indices) = nb_faces * 3; (*count_vertices) = v.nb_vertices;