зеркало из https://github.com/mozilla/gecko-dev.git
Bug 375878 remove users of Recycle()patch by taras glek r+sr=biesi
This commit is contained in:
Родитель
3c6ce52492
Коммит
c6ef8b6043
|
@ -613,7 +613,7 @@ nsHTMLEditor::NodeIsBlockStatic(nsIDOMNode *aNode, PRBool *aIsBlock)
|
|||
assertmsg.Append(tagName);
|
||||
char* assertstr = ToNewCString(assertmsg);
|
||||
NS_ASSERTION(*aIsBlock, assertstr);
|
||||
Recycle(assertstr);
|
||||
NS_Free(assertstr);
|
||||
}
|
||||
}
|
||||
#endif /* DEBUG */
|
||||
|
|
|
@ -302,7 +302,7 @@ nsDirIndexParser::ParseData(nsIDirIndex *aIdx, char* aDataStr) {
|
|||
aIdx->SetDescription(result);
|
||||
success = PR_TRUE;
|
||||
}
|
||||
Recycle(result);
|
||||
NS_Free(result);
|
||||
} else {
|
||||
NS_WARNING("UnEscapeAndConvert error");
|
||||
}
|
||||
|
|
|
@ -1144,7 +1144,7 @@ FileSystemDataSource::GetFolderList(nsIRDFResource *source, PRBool allowHidden,
|
|||
continue;
|
||||
|
||||
nsCAutoString leaf(escLeafStr);
|
||||
Recycle(escLeafStr);
|
||||
NS_Free(escLeafStr);
|
||||
escLeafStr = nsnull;
|
||||
|
||||
// using nsEscape() [above] doesn't escape slashes, so do that by hand
|
||||
|
|
|
@ -780,7 +780,7 @@ PK11PasswordPrompt(PK11SlotInfo* slot, PRBool retry, void* arg) {
|
|||
|
||||
if (NS_SUCCEEDED(rv) && value) {
|
||||
char* str = ToNewUTF8String(nsDependentString(password));
|
||||
Recycle(password);
|
||||
NS_Free(password);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
|
|
@ -239,7 +239,7 @@ PRInt32 nsInstallExecute::Complete()
|
|||
rv = nsInstall::UNEXPECTED_ERROR;
|
||||
|
||||
if(arguments)
|
||||
Recycle(arguments);
|
||||
NS_Free(arguments);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
@ -275,7 +275,7 @@ char* nsInstallExecute::toString()
|
|||
}
|
||||
|
||||
if (tempString)
|
||||
Recycle(tempString);
|
||||
NS_Free(tempString);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -383,9 +383,9 @@ char* nsInstallFile::toString()
|
|||
mFinalFile->GetNativePath(fname);
|
||||
|
||||
PR_snprintf( buffer, RESBUFSIZE, interimCStr, fname.get() );
|
||||
Recycle(interimCStr);
|
||||
NS_Free(interimCStr);
|
||||
}
|
||||
Recycle(rsrcVal);
|
||||
NS_Free(rsrcVal);
|
||||
}
|
||||
|
||||
return buffer;
|
||||
|
|
|
@ -133,7 +133,7 @@ char* nsInstallUninstall::toString()
|
|||
}
|
||||
|
||||
if (temp)
|
||||
Recycle(temp);
|
||||
NS_Free(temp);
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
|
|
@ -1569,7 +1569,7 @@ InstallTRACE(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
|||
tempStr = ToNewCString(b0);
|
||||
printf("Install:\t%s\n", tempStr);
|
||||
|
||||
Recycle(tempStr);
|
||||
NS_Free(tempStr);
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче