fixed #11752: Necessity to clear data when popup is destroyed

This commit is contained in:
Eism 2022-05-25 17:43:57 +03:00
parent dd8a07e1e5
commit 8583805af3
2 changed files with 7 additions and 1 deletions

View file

@ -69,6 +69,12 @@ PopupView::PopupView(QQuickItem* parent)
});
}
PopupView::~PopupView()
{
m_contentItem->deleteLater();
delete m_closeController;
}
QQuickItem* PopupView::parentItem() const
{
if (!parent()) {

View file

@ -86,7 +86,7 @@ class PopupView : public QObject, public QQmlParserStatus, async::Asyncable
public:
explicit PopupView(QQuickItem* parent = nullptr);
~PopupView() override = default;
~PopupView() override;
enum OpenPolicy {
Default = 0,