Skip to content

Commit

Permalink
Merge pull request zecruel#9 from zYg-sys/opengl
Browse files Browse the repository at this point in the history
fix memory leak
  • Loading branch information
zecruel committed Nov 3, 2021
2 parents c157b67 + b63b94a commit a9eed57
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 a9eed57

Please sign in to comment.