mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 20:59:10 +02:00
git-svn-id: trunk@33026 -
This commit is contained in:
parent
188fb2d302
commit
7d2ebbe7a9
@ -1534,6 +1534,9 @@ begin
|
||||
begin
|
||||
// add to cache
|
||||
CachedFont := FontCache.Add(GdiObject^.GDIFontObject, LogFont, ALongFontName);
|
||||
//decrement refcount for GdiObject^.GDIFontObject so that object gets
|
||||
//released when removing from FontCache.
|
||||
g_object_unref(GdiObject^.GDIFontObject);
|
||||
if CachedFont <> nil then
|
||||
begin
|
||||
CachedFont.PangoFontDescription := PangoDesc;
|
||||
|
Loading…
Reference in New Issue
Block a user