diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-02-05 21:42:47 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@redhat.com> | 2005-02-05 21:42:47 +0000 |
commit | 092c5ca5583512c9689397f355d3d0b7a09c882e (patch) | |
tree | aa6a9581961a1a2510b68267504b86429a416748 | |
parent | eb01786729b3d56f47ddf593fd5cc826d5c75064 (diff) |
Free glyph_indices, not glyphs. (Reported by Hans Breuer.)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/cairo-win32-font.c | 4 | ||||
-rw-r--r-- | src/cairo_win32_font.c | 4 |
3 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2005-02-06 Owen Taylor <otaylor@redhat.com> + + * src/cairo_win32_font.c (_cairo_win32_font_text_to_glyphs): Free + glyph_indices, not glyphs. (Reported by Hans Breuer.) + 2005-02-05 Carl Worth <cworth@cworth.org> * configure.in: Add message stating why glitz backend is disabled. diff --git a/src/cairo-win32-font.c b/src/cairo-win32-font.c index d72d19a8e..b847b91f2 100644 --- a/src/cairo-win32-font.c +++ b/src/cairo-win32-font.c @@ -586,8 +586,8 @@ _cairo_win32_font_text_to_glyphs (void *abstract_font, } FAIL2: - if (glyphs) - free (glyphs); + if (glyph_indices) + free (glyph_indices); if (dx) free (dx); diff --git a/src/cairo_win32_font.c b/src/cairo_win32_font.c index d72d19a8e..b847b91f2 100644 --- a/src/cairo_win32_font.c +++ b/src/cairo_win32_font.c @@ -586,8 +586,8 @@ _cairo_win32_font_text_to_glyphs (void *abstract_font, } FAIL2: - if (glyphs) - free (glyphs); + if (glyph_indices) + free (glyph_indices); if (dx) free (dx); |