From 1841d987ebb68df44abbbe4907fb6171706fd8cc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 19 May 2012 10:27:06 +1000 Subject: Free text layout after drawing text. --- win32/PlatWin.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 2a4c36c6e..2ae056f30 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1580,6 +1580,7 @@ void SurfaceD2D::DrawTextCommon(PRectangle rc, Font &font_, XYPOSITION ybase, co if (SUCCEEDED(hr)) { D2D1_POINT_2F origin = {rc.left, ybase-yAscent}; pRenderTarget->DrawTextLayout(origin, pTextLayout, pBrush, D2D1_DRAW_TEXT_OPTIONS_NONE); + pTextLayout->Release(); } else { D2D1_RECT_F layoutRect = D2D1::RectF( static_cast(rcw.left) / dpiScaleX, -- cgit v1.2.3