mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
fix: Fix memory leak
This commit is contained in:
parent
501365560b
commit
3e5c5603c0
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_menu = new QMenu();
|
||||
m_quit = new QAction();
|
||||
m_showWindow = new QAction();;
|
||||
m_showWindow = new QAction();
|
||||
m_showWindow->setText(tr("show"));
|
||||
m_quit->setText(tr("quit"));
|
||||
m_menu->addAction(m_showWindow);
|
||||
|
|
Loading…
Add table
Reference in a new issue