Fix a crash
This commit is contained in:
parent
d1708087d1
commit
4d2099a9d2
|
@ -56,7 +56,10 @@ void WrapXerces::Init ( bool enableNetAccess ) throw()
|
||||||
}
|
}
|
||||||
~Initializer()
|
~Initializer()
|
||||||
{
|
{
|
||||||
|
if ( mOriginalNetAccessor != NULL ) {
|
||||||
|
XMLPlatformUtils::fgNetAccessor = ( ( XercesNetAccessor * ) mOriginalNetAccessor )->getNetAccessor();
|
||||||
delete mOriginalNetAccessor;
|
delete mOriginalNetAccessor;
|
||||||
|
}
|
||||||
XMLPlatformUtils::Terminate();
|
XMLPlatformUtils::Terminate();
|
||||||
}
|
}
|
||||||
} dummy;
|
} dummy;
|
||||||
|
|
|
@ -30,6 +30,8 @@ class XercesNetAccessor : public XMLNetAccessor
|
||||||
public:
|
public:
|
||||||
XercesNetAccessor ( XMLNetAccessor *netAccesor );
|
XercesNetAccessor ( XMLNetAccessor *netAccesor );
|
||||||
|
|
||||||
|
XMLNetAccessor *getNetAccessor() const { return mNetAccessor; }
|
||||||
|
|
||||||
virtual const XMLCh *getId() const;
|
virtual const XMLCh *getId() const;
|
||||||
|
|
||||||
virtual BinInputStream *makeNew ( const XMLURL &urlSrc,
|
virtual BinInputStream *makeNew ( const XMLURL &urlSrc,
|
||||||
|
|
Loading…
Reference in New Issue