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
11871187
11881188 void Menu::toggleLocationList() {
11891189 if (!_userLocationsWindow) {
1190− _userLocationsWindow = new UserLocationsWindow();
1190+ _userLocationsWindow = new UserLocationsWindow(Application::getInstance()->getWindow());
11911191 }
11921192 if (_userLocationsWindow->isVisible()) {
11931193 _userLocationsWindow->hide();