am a0e762ca: free the NPObject in NPP_Destroy.
Merge commit 'a0e762caeaca275ed8390e9ee1cfb5e9149e07b7' into eclair-mr2-plus-aosp * commit 'a0e762caeaca275ed8390e9ee1cfb5e9149e07b7': 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)
|
NPError NPP_Destroy(NPP instance, NPSavedData** save)
|
||||||
{
|
{
|
||||||
PluginObject *obj = (PluginObject*) instance->pdata;
|
PluginObject *obj = (PluginObject*) instance->pdata;
|
||||||
|
if (obj) {
|
||||||
delete obj->activePlugin;
|
delete obj->activePlugin;
|
||||||
|
browser->releaseobject(&obj->header);
|
||||||
|
}
|
||||||
|
|
||||||
return NPERR_NO_ERROR;
|
return NPERR_NO_ERROR;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user