Reviewed by Adele.
[WebKit-https.git] / WebKit / win / WebActionPropertyBag.cpp
index 1e4994675efbc04240e9adb1f8573bba815e4225..41f9ccc895b80ab670778806bac3fe374ed01f37 100644 (file)
@@ -118,11 +118,8 @@ HRESULT STDMETHODCALLTYPE WebActionPropertyBag::Read(LPCOLESTR pszPropName, VARI
     } else if (isEqual(pszPropName, WebActionElementKey)) {
         if (const MouseEvent* mouseEvent = findMouseEvent(m_action.event())) {
             IntPoint point(mouseEvent->clientX(), mouseEvent->clientY());
-            COMPtr<WebElementPropertyBag> elementPropertyBag;
-            elementPropertyBag.adoptRef(WebElementPropertyBag::createInstance(m_frame->eventHandler()->hitTestResultAtPoint(point, false)));
-
             V_VT(pVar) = VT_UNKNOWN;
-            elementPropertyBag->QueryInterface(IID_IUnknown, (void**)V_UNKNOWNREF(pVar));
+            V_UNKNOWN(pVar) = WebElementPropertyBag::createInstance(m_frame->eventHandler()->hitTestResultAtPoint(point, false));
             return S_OK;
         }
     } else if (isEqual(pszPropName, WebActionButtonKey)) {