summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/page/GeolocationController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/page/GeolocationController.cpp')
-rw-r--r--Source/WebCore/page/GeolocationController.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/WebCore/page/GeolocationController.cpp b/Source/WebCore/page/GeolocationController.cpp
index 764b913..b9533ca 100644
--- a/Source/WebCore/page/GeolocationController.cpp
+++ b/Source/WebCore/page/GeolocationController.cpp
@@ -41,12 +41,10 @@ GeolocationController::GeolocationController(Page* page, GeolocationClient* clie
GeolocationController::~GeolocationController()
{
- if (m_client) {
- if (!m_observers.isEmpty())
- m_client->stopUpdating();
+ ASSERT(m_observers.isEmpty());
+ if (m_client)
m_client->geolocationDestroyed();
- }
}
void GeolocationController::addObserver(Geolocation* observer, bool enableHighAccuracy)