fix: mem leak

This commit is contained in:
cha0s 2019-04-20 21:36:28 -05:00
parent 6c00da70f9
commit dedadc3f03

View File

@ -36,7 +36,7 @@ const DebugUi = ({
stage.on('displaySizeChanged', onStageResized);
onStageResized(stage.displaySize);
return () => {
stage.off('resized', onStageResized);
stage.off('displaySizeChanged', onStageResized);
};
}, []);
// F2 toggle debug.