Qt: fix mem leaks in screenshot and save managers

This commit is contained in:
Megamouse 2020-03-25 02:58:13 +01:00
parent 844f9683ec
commit a11c77c009
2 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,7 @@ save_manager_dialog::save_manager_dialog(std::shared_ptr<gui_settings> gui_setti
{
setWindowTitle(tr("Save Manager"));
setMinimumSize(QSize(400, 400));
setAttribute(Qt::WA_DeleteOnClose);
Init(dir);
}

View File

@ -15,6 +15,7 @@
screenshot_manager_dialog::screenshot_manager_dialog(QWidget* parent) : QDialog(parent)
{
setWindowTitle(tr("Screenshots"));
setAttribute(Qt::WA_DeleteOnClose);
m_icon_size = QSize(160, 90);