Skip to content

Commit

Permalink
fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
zyg authored and zyg committed Sep 14, 2021
1 parent c157b67 commit b63b94a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shape.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ void shp_font_free(shp_typ *shp_font){
current = next_shp;
}
}
free(shp_font);
}
}

Expand Down Expand Up @@ -1043,4 +1044,4 @@ int shp_parse_str(shp_typ *font, list_node *list_ret, int pool_idx, char *txt, d
}
if (w != NULL) *w = ofs_x; /* return the text width*/
return num_graph;
}
}

0 comments on commit b63b94a

Please sign in to comment.