| Index: Source/WebCore/svg/SVGCursorElement.cpp
|
| ===================================================================
|
| --- Source/WebCore/svg/SVGCursorElement.cpp (revision 79907)
|
| +++ Source/WebCore/svg/SVGCursorElement.cpp (working copy)
|
| @@ -80,8 +80,11 @@
|
|
|
| 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)
|
|
|