summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3895c7d)
raw | patch | inline | side by side (parent: 3895c7d)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 26 Sep 2005 20:33:45 +0000 (20:33 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 26 Sep 2005 20:33:45 +0000 (20:33 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@691 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_gfx.c | patch | blob | history |
diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c
index 7084720bc259b7bd1884a0e127aeaa651e5cc033..1d46a858243d830f8536e6afafefbb385aaab119 100644 (file)
--- a/src/rrd_gfx.c
+++ b/src/rrd_gfx.c
FT_Init_FreeType( &library );
error = FT_New_Face( library, font, 0, &face );
- if ( error ) return -1;
+ if ( error ) {
+ FT_Done_FreeType(library);
+ return -1;
+ }
error = FT_Set_Char_Size(face, size*64,size*64, 100,100);
- if ( error ) return -1;
-
+ if ( error ) {
+ FT_Done_FreeType(library);
+ return -1;
+ }
string = gfx_string_create( canvas, face, text, rotation, tabwidth, size );
text_width = string->width;
gfx_string_destroy(string);
&face );
if ( error ) {
rrd_set_error("failed to load %s",node->filename);
+
break;
}
error = FT_Set_Char_Size(face, /* handle to face object */