summaryrefslogtreecommitdiff
path: root/vcl/aqua/source/window/salframe.cxx
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2010-07-23 13:29:06 +0200
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2010-07-23 13:29:06 +0200
commitf3bf8628235e3ccf352c52edae3be8c57517f850 (patch)
treeb1a00e7899284edac2f0dd4535fb0529de996a5a /vcl/aqua/source/window/salframe.cxx
parentcca8d69b1ed9c7dd7de7632824d702253d77a8b9 (diff)
pl07: #i113170# ensure autorelease pool in ::Show
Diffstat (limited to 'vcl/aqua/source/window/salframe.cxx')
-rw-r--r--vcl/aqua/source/window/salframe.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/aqua/source/window/salframe.cxx b/vcl/aqua/source/window/salframe.cxx
index fdee24f09a10..83fdfe3c8a47 100644
--- a/vcl/aqua/source/window/salframe.cxx
+++ b/vcl/aqua/source/window/salframe.cxx
@@ -404,6 +404,9 @@ void AquaSalFrame::SendPaintEvent( const Rectangle* pRect )
void AquaSalFrame::Show(BOOL bVisible, BOOL bNoActivate)
{
+ // #i113170# may not be the main thread if called from UNO API
+ SalData::ensureThreadAutoreleasePool();
+
mbShown = bVisible;
if(bVisible)
{