diff --git a/desktop/plugins/public/leak_canary/docs/setup.mdx b/desktop/plugins/public/leak_canary/docs/setup.mdx index 09f18c397..8b7c47add 100644 --- a/desktop/plugins/public/leak_canary/docs/setup.mdx +++ b/desktop/plugins/public/leak_canary/docs/setup.mdx @@ -28,7 +28,7 @@ import com.facebook.flipper.plugins.leakcanary2.LeakCanary2FlipperPlugin set the flipper listener in leak canary config */ LeakCanary.config = LeakCanary.config.run { - copy(eventListeners = eventListeners + FlipperLeakEventListener) + copy(eventListeners = eventListeners + FlipperLeakEventListener()) } SoLoader.init(this, false)