1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-05 06:58:27 +02:00

Destroy all registered Monitor objects when the Menu is destroyed

This commit is contained in:
Paul Cercueil 2013-07-19 14:50:26 -04:00
parent 9dae4b76df
commit 5255bf6de3

View File

@ -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() {