DirectWrite font engine: don't leak the font table buffer
authorKonstantin Ritt <ritt.ks@gmail.com>
Mon, 2 Jul 2012 04:44:27 +0000 (07:44 +0300)
committerQt by Nokia <qt-info@nokia.com>
Mon, 2 Jul 2012 23:08:49 +0000 (01:08 +0200)
commit02aee5d174b0a1d0f925dc5c3243f77d0dc0c8c4
tree54b9b1e6c1521de1fd9f07d22539d99c29990438
parentd53f5db95366b550c23ef3684ef24d09d2d66fea
DirectWrite font engine: don't leak the font table buffer

Ideally, each TryGetFontTable() call sequence should be followed
by the call to ReleaseFontTable() with the context value
taken from the first TryGetFontTable() call,
otherwise we'll leak the buffer allocated for the font table.

Change-Id: I627bf0133b7f61798e82929723ccfb780ce9ee69
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/gui/text/qfontenginedirectwrite.cpp
src/plugins/platforms/windows/qwindowsfontenginedirectwrite.cpp