am bc7afcb9: Merge "free the NPObject in NPP_Destroy." into eclair-mr2
Merge commit 'bc7afcb94688dedb0ae9b4b3415f46aa13e713e5' into eclair-mr2-plus-aosp * commit 'bc7afcb94688dedb0ae9b4b3415f46aa13e713e5': free the NPObject in NPP_Destroy.
This commit is contained in:
@@ -168,7 +168,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->subPlugin;
|
||||
if (obj) {
|
||||
delete obj->subPlugin;
|
||||
browser->releaseobject(&obj->header);
|
||||
}
|
||||
|
||||
return NPERR_NO_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user