Skip to content

Commit

Permalink
Fix memory leak on glTF export
Browse files Browse the repository at this point in the history
Forgot to free the vertex buffer.
  • Loading branch information
guillaumechereau committed Jul 8, 2024
1 parent eaf9828 commit 17d5030
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/volume_to_vertices.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ volume_mesh_t *volume_generate_mesh(
if (nb == 0) continue;
fill_mesh(mesh, verts, nb, size, subdivide, bpos, palette);
}
free(verts);

optimize_mesh(mesh, simplify);

Expand Down

0 comments on commit 17d5030

Please sign in to comment.