From c40bdc1bb213e499701a8f9434243e9949f92761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 7 Jul 2014 13:46:26 +0200 Subject: [PATCH] [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 --- clients/aurorae/src/aurorae.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/aurorae/src/aurorae.cpp b/clients/aurorae/src/aurorae.cpp index e1f4d2e711..26b44a957f 100644 --- a/clients/aurorae/src/aurorae.cpp +++ b/clients/aurorae/src/aurorae.cpp @@ -296,6 +296,7 @@ AuroraeClient::AuroraeClient(KDecorationBridge *bridge, KDecorationFactory *fact AuroraeClient::~AuroraeClient() { + QMutexLocker locker(AuroraeFactory::instance()->mutex()); } void AuroraeClient::init()