From: ellson Date: Wed, 2 Feb 2005 03:58:02 +0000 (+0000) Subject: another oddity only with gcc4 - answer stop using gcc4 X-Git-Tag: LAST_LIBGRAPH~32^2~7955 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b26729b85d267b7bfeb94e0872a71a45f8d732f;p=graphviz another oddity only with gcc4 - answer stop using gcc4 --- diff --git a/lib/common/fontmetrics.c b/lib/common/fontmetrics.c index 74fccdf1a..6d018540a 100644 --- a/lib/common/fontmetrics.c +++ b/lib/common/fontmetrics.c @@ -208,15 +208,7 @@ double textwidth(textline_t * textline, char *fontname, double fontsize) cairo_select_font(cr, fontname, 0, 0); cairo_scale_font(cr, fontsize); cairo_text_extents(cr, textline->str, &extents); -#if 0 cairo_destroy(cr); -#else -/* FIXME - adding this test mysteriously fixes the mysteriously destroyed cr problem */ - if (cr) - cairo_destroy(cr); - else - fprintf(stderr,"fontmetrics.c:textwidth() - cr mysteriously destroyed already\n"); -#endif textline->width = extents.width; textline->xshow = NULL;