WeakPtrFactory should populate m_ref lazily.
[WebKit-https.git] / Source / WebKit / UIProcess / ios / ProcessAssertionIOS.mm
index b529607..810c6f3 100644 (file)
@@ -161,8 +161,7 @@ static BKSProcessAssertionFlags flagsForState(AssertionState assertionState)
 }
 
 ProcessAssertion::ProcessAssertion(pid_t pid, AssertionState assertionState, Function<void()>&& invalidationCallback)
-    : m_weakFactory(this)
-    , m_invalidationCallback(WTFMove(invalidationCallback))
+    : m_invalidationCallback(WTFMove(invalidationCallback))
     , m_assertionState(assertionState)
 {
     auto weakThis = createWeakPtr();