diff --git a/layout/style/nsComputedDOMStyle.cpp b/layout/style/nsComputedDOMStyle.cpp index 11c93732b692..e019c9fda691 100644 --- a/layout/style/nsComputedDOMStyle.cpp +++ b/layout/style/nsComputedDOMStyle.cpp @@ -452,7 +452,7 @@ nsComputedDOMStyle::GetPropertyValue(const nsAString& aPropertyName, return NS_ERROR_NOT_AVAILABLE; } - auto cleanup = mozilla::MakeScopeExit([&] { + auto cleanup = mozilla::MakeScopeExit([this] { ClearCurrentStyleSources(); });