Clear memory on MediaView closing.

This commit is contained in:
John Preston 2018-10-31 10:14:09 +04:00
parent f2348fc749
commit c9159e2191
1 changed files with 4 additions and 0 deletions

View File

@ -3138,6 +3138,10 @@ void MediaView::setVisible(bool visible) {
stopGif();
destroyThemePreview();
_radial.stop();
_current = QPixmap();
_themePreview = nullptr;
_themeApply.destroyDelayed();
_themeCancel.destroyDelayed();
}
}