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:
Sébastien Blin 2014-05-01 16:59:16 +02:00
parent 2b1ba99bf2
commit 4d51132c54

View File

@ -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;