mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Clear memory on MediaView closing.
This commit is contained in:
parent
f2348fc749
commit
c9159e2191
1 changed files with 4 additions and 0 deletions
|
@ -3138,6 +3138,10 @@ void MediaView::setVisible(bool visible) {
|
||||||
stopGif();
|
stopGif();
|
||||||
destroyThemePreview();
|
destroyThemePreview();
|
||||||
_radial.stop();
|
_radial.stop();
|
||||||
|
_current = QPixmap();
|
||||||
|
_themePreview = nullptr;
|
||||||
|
_themeApply.destroyDelayed();
|
||||||
|
_themeCancel.destroyDelayed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue