mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 972593, part 2 - Don't deref an always-null pointer in nsStreamConverterService::FindConverter. r=mcmanus
This commit is contained in:
parent
e19d4d81e6
commit
2c0406341e
@ -269,10 +269,8 @@ nsStreamConverterService::FindConverter(const char *aContractID, nsTArray<nsCStr
|
||||
|
||||
for (int32_t i = 0; i < edgeCount; i++) {
|
||||
nsIAtom* curVertexAtom = data2->ObjectAt(i);
|
||||
nsAutoString curVertexStr;
|
||||
curVertexAtom->ToString(curVertexStr);
|
||||
nsCString *curVertex = nullptr;
|
||||
CopyUTF16toUTF8(curVertexStr, *curVertex);
|
||||
nsCString *curVertex = new nsCString();
|
||||
curVertexAtom->ToUTF8String(*curVertex);
|
||||
|
||||
BFSTableData *curVertexState = lBFSTable.Get(*curVertex);
|
||||
if (!curVertexState) {
|
||||
|
Loading…
Reference in New Issue
Block a user