mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 06:22:33 +00:00
Don't destroy what hasn't been created (NOT PART OF BUILD).
This commit is contained in:
parent
89e4c469ac
commit
83d65f9508
@ -95,7 +95,7 @@ JS_NewDHashTable(JSDHashTableOps *ops, void *data, uint32 entrySize,
|
||||
if (!table)
|
||||
return NULL;
|
||||
if (!JS_DHashTableInit(table, ops, data, entrySize, capacity)) {
|
||||
JS_DHashTableDestroy(table);
|
||||
free(table);
|
||||
return NULL;
|
||||
}
|
||||
return table;
|
||||
|
Loading…
x
Reference in New Issue
Block a user