mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-03 06:08:39 +00:00
fix: Fix memory leak
fix: Fix memory leak
This commit is contained in:
commit
44e6b5950c
1 changed files with 2 additions and 2 deletions
|
@ -77,11 +77,11 @@ Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Dialog)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
m_hideIcon = new QSystemTrayIcon();
|
m_hideIcon = new QSystemTrayIcon(this);
|
||||||
m_hideIcon->setIcon(QIcon(":/image/tray/logo.png"));
|
m_hideIcon->setIcon(QIcon(":/image/tray/logo.png"));
|
||||||
m_menu = new QMenu();
|
m_menu = new QMenu();
|
||||||
m_quit = new QAction();
|
m_quit = new QAction();
|
||||||
m_showWindow = new QAction();;
|
m_showWindow = new QAction();
|
||||||
m_showWindow->setText(tr("show"));
|
m_showWindow->setText(tr("show"));
|
||||||
m_quit->setText(tr("quit"));
|
m_quit->setText(tr("quit"));
|
||||||
m_menu->addAction(m_showWindow);
|
m_menu->addAction(m_showWindow);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue