INTEGRATION: CWS pl01 (1.4.12); FILE MERGED

2003/06/27 11:19:50 sb 1.4.12.1: #110428# Avoid dereferencing null pointer.
This commit is contained in:
Jens-Heiner Rechtien 2003-06-30 14:14:52 +00:00
parent 25dd4bb046
commit f59e332115

View file

@ -2,7 +2,7 @@
Source Code Control System - Header
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/extensions/source/plugin/unx/npnapi.cxx,v 1.4 2003-05-28 12:38:30 vg Exp $
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/extensions/source/plugin/unx/npnapi.cxx,v 1.5 2003-06-30 15:14:52 hr Exp $
*************************************************************************/
#include <plugin/unx/plugcon.hxx>
@ -114,16 +114,18 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, pMediator )
NPSavedData* pSave = NULL;
NPError aRet = aPluginFuncs.destroy( instance, &pSave );
if( pSave )
{
Respond( pMessage->m_nID,
(char*)&aRet, sizeof( aRet ),
pSave->buf, pSave->len,
NULL );
delete [] pSave->buf;
}
else
Respond( pMessage->m_nID,
(char*)&aRet, sizeof( aRet ),
"0000", 4,
NULL );
delete [] pSave->buf;
delete m_aInstances.Remove( nInstance );
delete instance;
}