Skip to content

Commit

Permalink
fix potential leak
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jan 21, 2020
1 parent f59c927 commit 91ccd96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/material-ui/src/ButtonBase/TouchRipple.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const TouchRipple = React.forwardRef(function TouchRipple(props, ref) {
React.useEffect(() => {
return () => {
clearTimeout(startTimer.current);
startTimerCommit.current = null;
};
}, []);

Expand Down

0 comments on commit 91ccd96

Please sign in to comment.