msxml3: Remove redundant NULL check before SysFreeString.

This commit is contained in:
Detlef Riekenberg 2008-09-21 15:56:18 +02:00 committed by Alexandre Julliard
parent 410302d898
commit f4558c6475
1 changed files with 4 additions and 6 deletions

View File

@ -1517,9 +1517,7 @@ static ULONG WINAPI isaxlocator_Release(
ref = InterlockedDecrement( &This->ref ); ref = InterlockedDecrement( &This->ref );
if ( ref == 0 ) if ( ref == 0 )
{ {
if(This->publicId)
SysFreeString(This->publicId); SysFreeString(This->publicId);
if(This->systemId)
SysFreeString(This->systemId); SysFreeString(This->systemId);
HeapFree(GetProcessHeap(), 0, This->nsStack); HeapFree(GetProcessHeap(), 0, This->nsStack);
@ -1558,7 +1556,7 @@ static HRESULT WINAPI isaxlocator_getPublicId(
BSTR publicId; BSTR publicId;
saxlocator *This = impl_from_ISAXLocator( iface ); saxlocator *This = impl_from_ISAXLocator( iface );
if(This->publicId) SysFreeString(This->publicId); SysFreeString(This->publicId);
publicId = bstr_from_xmlChar(xmlSAX2GetPublicId(This->pParserCtxt)); publicId = bstr_from_xmlChar(xmlSAX2GetPublicId(This->pParserCtxt));
if(SysStringLen(publicId)) if(SysStringLen(publicId))
@ -1580,7 +1578,7 @@ static HRESULT WINAPI isaxlocator_getSystemId(
BSTR systemId; BSTR systemId;
saxlocator *This = impl_from_ISAXLocator( iface ); saxlocator *This = impl_from_ISAXLocator( iface );
if(This->systemId) SysFreeString(This->systemId); SysFreeString(This->systemId);
systemId = bstr_from_xmlChar(xmlSAX2GetSystemId(This->pParserCtxt)); systemId = bstr_from_xmlChar(xmlSAX2GetSystemId(This->pParserCtxt));
if(SysStringLen(systemId)) if(SysStringLen(systemId))