[aurorae] Use QMutexLocker in AuroraeClient's dtor

It's possible that the rendering thread is still writing to the
buffer and if we destroy the buffer before it's finished KWin is going
to crash. So let's mutex lock the dtor to ensure that the rendering
thread finishes before we tear down the client.

BUG: 336950
This commit is contained in:
Martin Gräßlin 2014-07-07 13:46:26 +02:00
parent 69ae6a6d22
commit c40bdc1bb2

View file

@ -296,6 +296,7 @@ AuroraeClient::AuroraeClient(KDecorationBridge *bridge, KDecorationFactory *fact
AuroraeClient::~AuroraeClient() AuroraeClient::~AuroraeClient()
{ {
QMutexLocker locker(AuroraeFactory::instance()->mutex());
} }
void AuroraeClient::init() void AuroraeClient::init()