History

Fix cleanup of resources for UserLocations*

Ryan Huffman committed 12 years ago

Commit a9e35291 parent e7e7bef3 files · +8 −1Browse files

Showing the changes to interface/src/Menu.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Menu.cpp+1−1
@@ -1187,7 +1187,7 @@ void Menu::namedLocationCreated(LocationManager::NamedLocationCreateResponse res · 1186 unmodified lines
1187 1187
1188void Menu::toggleLocationList() {1188void Menu::toggleLocationList() {
1189 if (!_userLocationsWindow) {1189 if (!_userLocationsWindow) {
1190 _userLocationsWindow = new UserLocationsWindow();1190 _userLocationsWindow = new UserLocationsWindow(Application::getInstance()->getWindow());
1191 }1191 }
1192 if (_userLocationsWindow->isVisible()) {1192 if (_userLocationsWindow->isVisible()) {
1193 _userLocationsWindow->hide();1193 _userLocationsWindow->hide();