diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-19 21:17:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-20 15:20:45 +0200 |
commit | d9ab7be6c2e4494846081b089710f4dd0b1d2ad3 (patch) | |
tree | 6a2b2cb3c0ff3ce76459d5dd03df0ceb6e61296b /vcl/source/app/svmain.cxx | |
parent | 7fe7805f0fe7924bb0e190207d8ea320353d2810 (diff) |
TODO: refcount ImplFontList
Change-Id: Ie125f1ac9c14a41e25c3e54beafca2f9e34e4c6f
Reviewed-on: https://gerrit.libreoffice.org/59310
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/app/svmain.cxx')
-rw-r--r-- | vcl/source/app/svmain.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx index dcd049cd86b8..a91b5c6686db 100644 --- a/vcl/source/app/svmain.cxx +++ b/vcl/source/app/svmain.cxx @@ -360,7 +360,7 @@ bool InitVCL() pSVData->maAppData.mpAppFileName = new OUString( aNativeFileName ); // Initialize global data - pSVData->maGDIData.mpScreenFontList = new PhysicalFontCollection; + pSVData->maGDIData.mxScreenFontList.reset(new PhysicalFontCollection); pSVData->maGDIData.mxScreenFontCache.reset(new ImplFontCache); pSVData->maGDIData.mpGrfConverter = new GraphicConverter; @@ -615,8 +615,7 @@ void DeInitVCL() pSVData->maWinData.mpAutoScrollWin = nullptr; pSVData->maWinData.mpLastWheelWindow = nullptr; - delete pSVData->maGDIData.mpScreenFontList; - pSVData->maGDIData.mpScreenFontList = nullptr; + pSVData->maGDIData.mxScreenFontList.reset(); pSVData->maGDIData.mxScreenFontCache.reset(); // Deinit Sal |