diff font/font_layout.cc @ 50:35ce1a30f3f9

* Added va_end where there is a va_start * Used NULL instead of 0 (so it works on 64b)
author thib
date Fri, 17 Apr 2009 18:38:06 +0000
parents 223b71206888
children 15a18fbe6f21
line wrap: on
line diff
--- a/font/font_layout.cc
+++ b/font/font_layout.cc
@@ -131,6 +131,7 @@ TextGlyphStreamHelper::Add(int& x, TextG
 				gl.g = g = it->impl.Color.g;
 				gl.b = b = it->impl.Color.b;
 			} else if (it->type == TextElem::size) {
+				delete face;
 				face = font->FaceLoad(it->impl.Size.scale);
 			} else if (it->type == TextElem::escape) {
 				x = gl.x;