From 080f331edd6c64dd93785f35e05b532aa2f72512 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Thu, 14 Apr 2005 06:05:59 +0000 Subject: [PATCH] Remove a stray free() (#3029, Carl Worth) Note that the bug is fixed. --- ChangeLog | 7 +++++++ src/cairo-font.c | 1 - test/select-font-no-show-text.c | 6 +++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index cabd48d4a..a690d5525 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-04-14 Owen Taylor + + * src/cairo-font.c (_cairo_simple_font_face_destroy): Remove + a stray free() (#3029, Carl Worth) + + * test/select-font-no-show-text.c: Note that the bug is fixed. + 2005-04-13 Carl Worth * src/cairo-image-surface.c: diff --git a/src/cairo-font.c b/src/cairo-font.c index 71eec2c91..36d21130c 100644 --- a/src/cairo-font.c +++ b/src/cairo-font.c @@ -340,7 +340,6 @@ _cairo_simple_font_face_destroy (void *abstract_face) _unlock_global_simple_cache (); free (simple_face->family); - free (simple_face); } static cairo_status_t diff --git a/test/select-font-no-show-text.c b/test/select-font-no-show-text.c index f662ce374..ee5f56390 100644 --- a/test/select-font-no-show-text.c +++ b/test/select-font-no-show-text.c @@ -32,6 +32,10 @@ * * *** glibc detected *** double free or corruption (fasttop): 0x083274d0 *** * Aborted + * + * 2005-04-14 Owen Taylor + * + * Fixed... just a stray free(). */ #include @@ -39,7 +43,7 @@ static cairo_test_t test = { "select-font-no-show-text", - "Exercise a bug in calling cairo_select_font but never drawing text.", + "Test calling cairo_select_font but never drawing text.", 0, 0 };