mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 18:23:08 +02:00
Destroy all registered Monitor objects when the Menu is destroyed
This commit is contained in:
parent
9dae4b76df
commit
5255bf6de3
@ -79,6 +79,10 @@ Menu::Menu(GMenu2X *gmenu2x, Touchscreen &ts)
|
||||
|
||||
Menu::~Menu() {
|
||||
freeLinks();
|
||||
|
||||
for (vector<Monitor *>::iterator it = monitors.begin();
|
||||
it < monitors.end(); it++)
|
||||
delete *it;
|
||||
}
|
||||
|
||||
uint Menu::firstDispRow() {
|
||||
|
Loading…
Reference in New Issue
Block a user