mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1208925 - Use delete to free instanceData since it has been allocated using new; r=baku
Found by Viva64.
This commit is contained in:
parent
7f044d9dd0
commit
98e9bad08c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user