diff options
author | Herbert Duerr [hdu] <herbert.duerr@oracle.com> | 2010-09-15 15:28:09 +0200 |
---|---|---|
committer | Herbert Duerr [hdu] <herbert.duerr@oracle.com> | 2010-09-15 15:28:09 +0200 |
commit | 614f61017e5ad1b2cdb12f906f8aa928bd2d0877 (patch) | |
tree | cab6402c3a95efe1bd35cabbf7ddcb0abd20eac2 /vcl/source/gdi/metric.cxx | |
parent | d4dbc31173487a97e4b022f0bb9dae25440856a8 (diff) |
#i113861# make ImplFontCharMap ref-counting consistent on all platforms
Diffstat (limited to 'vcl/source/gdi/metric.cxx')
-rw-r--r-- | vcl/source/gdi/metric.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/metric.cxx b/vcl/source/gdi/metric.cxx index 222eb0ab1447..e0a944584721 100644 --- a/vcl/source/gdi/metric.cxx +++ b/vcl/source/gdi/metric.cxx @@ -301,9 +301,9 @@ namespace int nCodesCount = sizeof(aDefaultUnicodeRanges) / sizeof(*pRangeCodes); CmapResult aDefaultCR( false, pRangeCodes, nCodesCount/2 ); pDefaultUnicodeImplFontCharMap = new ImplFontCharMap( aDefaultCR ); + pDefaultUnicodeImplFontCharMap->AddReference(); } - pDefaultUnicodeImplFontCharMap->AddReference(); return pDefaultUnicodeImplFontCharMap; } @@ -315,9 +315,9 @@ namespace int nCodesCount = sizeof(aDefaultSymbolRanges) / sizeof(*pRangeCodes); CmapResult aDefaultCR( true, pRangeCodes, nCodesCount/2 ); pDefaultSymbolImplFontCharMap = new ImplFontCharMap( aDefaultCR ); + pDefaultSymbolImplFontCharMap->AddReference(); } - pDefaultSymbolImplFontCharMap->AddReference(); return pDefaultSymbolImplFontCharMap; } } |