Skip to content

Commit

Permalink
fix: Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
ifdu-code authored May 18, 2021
1 parent e69c7e3 commit e356df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions QtScrcpy/dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e356df6

Please sign in to comment.