Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc7afcb9 authored by Grace Kloba's avatar Grace Kloba Committed by Android (Google) Code Review
Browse files

Merge "free the NPObject in NPP_Destroy." into eclair-mr2

parents 67166b6e c782c8d3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;
    if (obj) {
        delete obj->subPlugin;
        browser->releaseobject(&obj->header);
    }

    return NPERR_NO_ERROR;
}