From 09812a188161e9fb37e2822d6b3b6f071f5fbac1 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Fri, 13 Nov 2015 13:33:12 +0100 Subject: [PATCH] Forgot to unlisten to UserStore when unmounting --- js/components/ascribe_detail/media_container.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/components/ascribe_detail/media_container.js b/js/components/ascribe_detail/media_container.js index 233f0177..05f74ea1 100644 --- a/js/components/ascribe_detail/media_container.js +++ b/js/components/ascribe_detail/media_container.js @@ -60,6 +60,8 @@ let MediaContainer = React.createClass({ }, componentWillUnmount() { + UserStore.unlisten(this.onChange); + window.clearInterval(this.state.timerId); },