summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-24 08:44:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-24 08:44:48 +0200
commit6319cc457adf63c55920963a7a7cbb1398b8bbac (patch)
tree72eeda41d9aa9ac84bba5ff5af4da11114b7d0b5 /facetracknoir/ui.h
parent1b8a80c2694c025ecf2a3bd0d1c0a934f91451ec (diff)
ui: avoid potential memory leak
While not having tested with valgrind, setMenu() doesn't seem to take ownership of QMenu. Ensure it's not leaked.
Diffstat (limited to 'facetracknoir/ui.h')
-rw-r--r--facetracknoir/ui.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/facetracknoir/ui.h b/facetracknoir/ui.h
index 4e89b143..9ecc0db9 100644
--- a/facetracknoir/ui.h
+++ b/facetracknoir/ui.h
@@ -15,6 +15,7 @@
#include <QTimer>
#include <QSystemTrayIcon>
#include <QString>
+#include <QMenu>
#include "ui_main.h"
@@ -47,6 +48,7 @@ class MainWindow : public QMainWindow, private State
mem<IProtocolDialog> pProtocolDialog;
mem<ITrackerDialog> pTrackerDialog;
process_detector_worker det;
+ QMenu profile_menu;
mem<dylib> current_tracker()
{