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