revokeObjectURLs

This commit is contained in:
Matthew Hodgson 2018-04-29 03:17:55 +01:00
parent bffd5bb891
commit 9c5407c21f
3 changed files with 23 additions and 0 deletions

View file

@ -69,6 +69,12 @@ export default class MAudioBody extends React.Component {
}
}
componentWillUnmount() {
if (this.state.decryptedUrl) {
URL.revokeObjectURL(this.state.decryptedUrl);
}
}
render() {
const content = this.props.mxEvent.getContent();