diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog index 12194c69d..baa899567 100644 --- a/[GSoC]ChangeLog +++ b/[GSoC]ChangeLog @@ -1,3 +1,9 @@ +2020-07-08 Anuj Verma + + * src/sdf/ftsdf.c (split_sdf_shape): Memory leak. + After recursion the edges variable becomes `NULL' + so reassign it to deallocate the list completely. + 2020-07-08 Anuj Verma [sdf] Added functions to subdivide a conic curve. diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c index 0fa0bccf3..e8b82bfb8 100644 --- a/src/sdf/ftsdf.c +++ b/src/sdf/ftsdf.c @@ -824,6 +824,8 @@ edges.head = edges.head->next; } + edges = ((SDF_Contour*)contours.head->data)->edges; + /* Deallocate the previous list of edges and */ /* assign the newly created list to the contour. */ FT_List_Finalize( &edges, sdf_edge_destructor, memory, NULL ); @@ -2712,6 +2714,8 @@ FT_CALL( sdf_outline_decompose( outline, shape ) ); + split_sdf_shape( shape ); + FT_CALL( sdf_generate_bounding_box( shape, sdf_params->spread, sdf_params->root.target ) );