Commit 34d671dc authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Avoid duplicated string release in navigate_anchor.

parent 70937bd8
...@@ -86,6 +86,8 @@ static HRESULT navigate_anchor(HTMLAnchorElement *This) ...@@ -86,6 +86,8 @@ static HRESULT navigate_anchor(HTMLAnchorElement *This)
if(NS_SUCCEEDED(nsres)) { if(NS_SUCCEEDED(nsres)) {
const PRUnichar *target; const PRUnichar *target;
TRACE("target %s\n", debugstr_w(target));
nsAString_GetData(&target_str, &target); nsAString_GetData(&target_str, &target);
if(*target && strcmpiW(target, _selfW)) { if(*target && strcmpiW(target, _selfW)) {
if(!strcmpiW(target, _topW)) { if(!strcmpiW(target, _topW)) {
...@@ -106,8 +108,6 @@ static HRESULT navigate_anchor(HTMLAnchorElement *This) ...@@ -106,8 +108,6 @@ static HRESULT navigate_anchor(HTMLAnchorElement *This)
nsAString_Finish(&target_str); nsAString_Finish(&target_str);
return hres; return hres;
} }
nsAString_Finish(&target_str);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment