Bug 1208925 - Use delete to free instanceData since it has been allocated using new; r=baku

Found by Viva64.
This commit is contained in:
Ehsan Akhgari 2015-09-27 20:13:32 -04:00
parent 7f044d9dd0
commit 98e9bad08c

View File

@ -971,7 +971,7 @@ NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char*
NPError err = pluginInstanceInit(instanceData);
if (err != NPERR_NO_ERROR) {
NPN_ReleaseObject(scriptableObject);
free(instanceData);
delete instanceData;
return err;
}