From 8ed93fef13be39815b452474e9e44bf8b6861ea3 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 6 Apr 2013 23:43:05 +0300 Subject: We need to acquire the yield mutex here Otherwise we get an assertion failure in a dbgutil build from the DBG_TESTSOLARMUTEX() in OutputDevice::ImplReleaseGraphics() when quitting, at least in 64-bit LO on OS X. Change-Id: Ieb54e6b58033279f807fe91f4f6139018f643903 --- vcl/source/gdi/virdev.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx index 35595507ea9c..559a1920dd7f 100644 --- a/vcl/source/gdi/virdev.cxx +++ b/vcl/source/gdi/virdev.cxx @@ -184,6 +184,10 @@ VirtualDevice::~VirtualDevice() ImplSVData* pSVData = ImplGetSVData(); + // OutputDevice::ImplReleaseGraphics() requires the yield mutex to + // be held, hmm. + pSVData->mpDefInst->AcquireYieldMutex( 1 ); + ImplReleaseGraphics(); if ( mpVirDev ) -- cgit