Things allocated with glib functions must be freed with g_free, not free

Sun Oct 22 05:25:46 2000  George Lebl <jirka@5z.com>

	* librsvg/rsvg-ft.c (rsvg_ft_ctx_done): Things allocated with
	  glib functions must be freed with g_free, not free
This commit is contained in:
George Lebl 2000-10-22 10:24:29 +00:00 committed by George Lebl
parent 869084e215
commit 92a72d90b1
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Sun Oct 22 05:25:46 2000 George Lebl <jirka@5z.com>
* librsvg/rsvg-ft.c (rsvg_ft_ctx_done): Things allocated with
glib functions must be freed with g_free, not free
2000-10-21 Eskil Heyn Olsen <eskil@eazel.com>
* nautilus.spec.in:

View file

@ -336,11 +336,11 @@ rsvg_ft_ctx_done (RsvgFTCtx *ctx) {
/* Free glyph cache. */
g_hash_table_destroy (ctx->glyph_hash_table);
for (glyph_ce = ctx->glyph_first; glyph_ce != NULL; glyph_ce = next) {
free (glyph_ce->desc);
free (glyph_ce->glyph->buf);
free (glyph_ce->glyph);
g_free (glyph_ce->desc);
g_free (glyph_ce->glyph->buf);
g_free (glyph_ce->glyph);
next = glyph_ce->next;
free (glyph_ce);
g_free (glyph_ce);
}
FT_Done_FreeType (ctx->ftlib);