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

Commit c782c8d3 authored by Grace Kloba's avatar Grace Kloba
Browse files

free the NPObject in NPP_Destroy.

parent 4bc95d19
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;
}