free the NPObject in NPP_Destroy.
This commit is contained in:
@@ -245,7 +245,10 @@ NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
|
||||
NPError NPP_Destroy(NPP instance, NPSavedData** save)
|
||||
{
|
||||
PluginObject *obj = (PluginObject*) instance->pdata;
|
||||
delete obj->activePlugin;
|
||||
if (obj) {
|
||||
delete obj->activePlugin;
|
||||
browser->releaseobject(&obj->header);
|
||||
}
|
||||
|
||||
return NPERR_NO_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user