diff options
author | nyamatongwe <devnull@localhost> | 2012-05-19 10:27:06 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-05-19 10:27:06 +1000 |
commit | 18c2137c85145a329cbdc6f052afb5f256cd0845 (patch) | |
tree | afe3e68aa95cb4142dab606fa4efe7ab6c7987d4 | |
parent | 07bed8ee942ea80fa116ced9b3464bd70b539237 (diff) | |
download | scintilla-mirror-18c2137c85145a329cbdc6f052afb5f256cd0845.tar.gz |
Free text layout after drawing text.
-rw-r--r-- | win32/PlatWin.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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<FLOAT>(rcw.left) / dpiScaleX, |