diff --git a/src/composite.cpp b/src/composite.cpp index 048f6ecebe..46e6af50e5 100644 --- a/src/composite.cpp +++ b/src/composite.cpp @@ -167,7 +167,7 @@ bool Compositor::attemptOpenGLCompositing() } kwinApp()->platform()->createOpenGLSafePoint(Platform::OpenGLSafePoint::PreInit); - qScopeGuard([]() { + auto safePointScope = qScopeGuard([]() { kwinApp()->platform()->createOpenGLSafePoint(Platform::OpenGLSafePoint::PostInit); });