Destroy all registered Monitor objects when the Menu is destroyed

This commit is contained in:
Paul Cercueil
2013-07-19 14:50:46 -04:00
parent 9dae4b76df
commit 5255bf6de3
+4
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() {