Don't destroy what hasn't been created (NOT PART OF BUILD).

This commit is contained in:
brendan%mozilla.org 2000-05-19 03:49:32 +00:00
parent 89e4c469ac
commit 83d65f9508

View File

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