From da5e1bc00c2e22139790d739b4e1064682f6f33b Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Mon, 25 Aug 2003 12:55:31 +0000 Subject: INTEGRATION: CWS vcl15 (1.25.26); FILE MERGED 2003/07/22 09:29:07 pl 1.25.26.1: #110842# cleaned up shutdown sequence --- vcl/unx/source/app/saldata.cxx | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'vcl/unx/source/app/saldata.cxx') diff --git a/vcl/unx/source/app/saldata.cxx b/vcl/unx/source/app/saldata.cxx index 1817f579628c..18c52e88967d 100644 --- a/vcl/unx/source/app/saldata.cxx +++ b/vcl/unx/source/app/saldata.cxx @@ -2,9 +2,9 @@ * * $RCSfile: saldata.cxx,v $ * - * $Revision: 1.27 $ + * $Revision: 1.28 $ * - * last change: $Author: hjs $ $Date: 2003-08-18 15:15:53 $ + * last change: $Author: kz $ $Date: 2003-08-25 13:55:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -380,13 +380,19 @@ SalData::SalData() } SalData::~SalData() +{ + DeleteDisplays(); +} + +void SalData::DeleteDisplays() { while( SalDisplays_.Count() ) delete SalDisplays_.Remove( (ULONG)0 ); delete pXLib_; - pDefDisp_ = NULL; - pCurDisp_ = NULL; + pXLib_ = NULL; + pDefDisp_ = NULL; + pCurDisp_ = NULL; } long SalData::Close() const @@ -429,6 +435,9 @@ XubString SalData::GetCommandLineParam( USHORT nParam ) const SalDisplay *SalData::GetDisplay( Display *pDisplay ) { +#if OSL_DEBUG_LEVEL > 1 + fprintf( stderr, "shutting down display\n" ); +#endif SalDisplay *pSalDisplay = SalDisplays_.First(); while( pSalDisplay && pSalDisplay->GetDisplay() != pDisplay ) pSalDisplay = SalDisplays_.Next(); @@ -507,11 +516,6 @@ SalXLib::~SalXLib() // close 'wakeup' pipe. close (pTimeoutFDS_[0]); close (pTimeoutFDS_[1]); - -// completetly disabled Bug Nr. #47319 -> segv while using xsuntransport=shmem -// #ifdef SAL_XT -// XtDestroyApplicationContext( pApplicationContext_ ); -// #endif } @@ -527,7 +531,7 @@ void SalXLib::Init( int *pArgc, char *ppArgv[] ) * try in this order: * o -display command line parameter, * o $DISPLAY environment variable - * o defualt display + * o default display */ Display *pDisp = NULL; -- cgit