vcl/source/app/svmain.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit ca61ef9eed82b41a299c59a34b2e8aed68279a49 Author: Henry Castro <hcas...@collabora.com> Date: Mon Sep 7 17:43:04 2015 -0400 vcl: assing NULL after delete Change-Id: Ibd46149e4353f28552b37e7c969ab20f1531ab34 diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx index 3d39dbf..4f78c40 100644 --- a/vcl/source/app/svmain.cxx +++ b/vcl/source/app/svmain.cxx @@ -390,7 +390,7 @@ void DeInitVCL() delete pSVData->mpSettingsConfigItem, pSVData->mpSettingsConfigItem = NULL; if ( pSVData->maAppData.mpIdleMgr ) - delete pSVData->maAppData.mpIdleMgr; + delete pSVData->maAppData.mpIdleMgr, pSVData->maAppData.mpIdleMgr = NULL; Scheduler::ImplDeInitScheduler(); if ( pSVData->maWinData.mpMsgBoxImgList ) @@ -554,7 +554,11 @@ void DeInitVCL() pSVData->mpSalTimer = NULL; // Deinit Sal - DestroySalInstance( pSVData->mpDefInst ); + if (pSVData->mpDefInst) + { + DestroySalInstance( pSVData->mpDefInst ); + pSVData->mpDefInst = NULL; + } if( pOwnSvApp ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits