##// END OF EJS Templates
Fix memory leak on demolauncher...
Miikka Heikkinen -
r2595:504bb5e5bca5
parent child
Show More
@@ -42,6 +42,10 GraphicsButton::~GraphicsButton()
42 42 void GraphicsButton::mousePressEvent(QMouseEvent *event)
43 43 {
44 44 QString program = m_appFolder.absolutePath() + QDir::separator() + m_app;
45 if (m_demoApp) {
46 m_demoApp->close();
47 delete m_demoApp;
48 }
45 49 m_demoApp = new QProcess(this);
46 50 m_demoApp->start(program);
47 51 event->accept();
General Comments 0
You need to be logged in to leave comments. Login now