WeakPtrFactory should populate m_ref lazily.
[WebKit-https.git] / Source / WebCore / platform / mediastream / MediaStreamPrivate.h
index 212df90..9f1ab52 100644 (file)
@@ -107,7 +107,7 @@ public:
 
     FloatSize intrinsicSize() const;
 
-    WeakPtr<MediaStreamPrivate> createWeakPtr() { return m_weakPtrFactory.createWeakPtr(); }
+    WeakPtr<MediaStreamPrivate> createWeakPtr() { return m_weakPtrFactory.createWeakPtr(*this); }
 
     void monitorOrientation(OrientationNotifier&);