Skip to content

Commit

Permalink
Merge branch 'develop' into 'develop'
Browse files Browse the repository at this point in the history
Fix memory leaks in gks text routines

See merge request Scientific-IT-Systems/gr!740
  • Loading branch information
jheinen committed Oct 29, 2021
2 parents f59310e + c80516e commit d0ac1e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/gks/gks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,6 +1183,7 @@ void gks_text(double px, double py, char *str)
gks_input2utf8(str, utf8_str, ENCODING_LATIN1);

gks_ft_text(px, py, utf8_str, s, gks_ft_gdp);
gks_free(utf8_str);
}
else
gks_ft_text(px, py, str, s, gks_ft_gdp);
Expand Down Expand Up @@ -2933,6 +2934,7 @@ void gks_inq_text_extent(int wkid, double px, double py, char *str, int *errind,
gks_input2utf8(str, utf8_str, ENCODING_LATIN1);

gks_ft_inq_text_extent(px, py, utf8_str, s, gks_ft_gdp, bx, by);
gks_free(utf8_str);
}
else
gks_ft_inq_text_extent(px, py, str, s, gks_ft_gdp, bx, by);
Expand Down

0 comments on commit d0ac1e0

Please sign in to comment.