mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 1005652 - Replace a free with a delete in nptest.cpp to fix a minor warning found by scan-build, the LLVM/Clang static analyzer. r=bsmedberg
This commit is contained in:
parent
2b1ba99bf2
commit
4d51132c54
@ -839,7 +839,7 @@ NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char*
|
||||
TestNPObject* scriptableObject = (TestNPObject*)NPN_CreateObject(instance, &sNPClass);
|
||||
if (!scriptableObject) {
|
||||
printf("NPN_CreateObject failed to create an object, can't create a plugin instance\n");
|
||||
free(instanceData);
|
||||
delete instanceData;
|
||||
return NPERR_GENERIC_ERROR;
|
||||
}
|
||||
scriptableObject->npp = instance;
|
||||
|
Loading…
Reference in New Issue
Block a user