summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/svg/SVGCursorElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGCursorElement.cpp')
-rw-r--r--Source/WebCore/svg/SVGCursorElement.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/WebCore/svg/SVGCursorElement.cpp b/Source/WebCore/svg/SVGCursorElement.cpp
index c49f799..12b47c9 100644
--- a/Source/WebCore/svg/SVGCursorElement.cpp
+++ b/Source/WebCore/svg/SVGCursorElement.cpp
@@ -94,8 +94,11 @@ void SVGCursorElement::addClient(SVGElement* element)
void SVGCursorElement::removeClient(SVGElement* element)
{
- m_clients.remove(element);
- element->cursorElementRemoved();
+ HashSet<SVGElement*>::iterator it = m_clients.find(element);
+ if (it != m_clients.end()) {
+ m_clients.remove(it);
+ element->cursorElementRemoved();
+ }
}
void SVGCursorElement::removeReferencedElement(SVGElement* element)