Fix leak in Systray
authorStephan Beyer <s-beyer@gmx.net>
Wed, 20 May 2020 22:28:23 +0000 (00:28 +0200)
committerStephan Beyer <s-beyer@gmx.net>
Wed, 20 May 2020 23:22:15 +0000 (01:22 +0200)
commit8bc1525df5e4791df29e8ebca5c70f8c3290959b
tree117bde0d1ec94c51f831f04aaa72a561d9dc9df7
parenteaf4aa0e5b5d17b2061aa5ae9d0edce968f5a1e5
Fix leak in Systray

The member _trayEngine, allocated in the constructor, was leaking.

This commit sets the Systray instance as the Qt object tree parent of
the _trayEngine to fix the leak.

While at it, a few unused header includes have been removed.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
src/gui/systray.cpp
src/gui/systray.h