summaryrefslogtreecommitdiffstats
path: root/WebCore/page/GeolocationController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/page/GeolocationController.cpp')
-rw-r--r--WebCore/page/GeolocationController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/page/GeolocationController.cpp b/WebCore/page/GeolocationController.cpp
index 44eba6e..968e854 100644
--- a/WebCore/page/GeolocationController.cpp
+++ b/WebCore/page/GeolocationController.cpp
@@ -54,7 +54,8 @@ void GeolocationController::addObserver(Geolocation* observer)
void GeolocationController::removeObserver(Geolocation* observer)
{
- ASSERT(m_observers.contains(observer));
+ if (!m_observers.contains(observer))
+ return;
m_observers.remove(observer);
if (m_observers.isEmpty())