mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 484309 fixing more allocator mismatches r+sr=bsmedberg
This commit is contained in:
parent
3bb0d471ba
commit
ed1376aadf
@ -65,7 +65,7 @@ nsInt2StrHashtable::Put(PRUint32 key, const char* aData)
|
||||
nsPRUint32Key k(key);
|
||||
char* oldValue = (char*)mHashtable.Put(&k, value);
|
||||
if (oldValue)
|
||||
nsCRT::free(oldValue);
|
||||
NS_Free(oldValue);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -85,7 +85,7 @@ nsInt2StrHashtable::Remove(PRUint32 key)
|
||||
nsPRUint32Key k(key);
|
||||
char* oldValue = (char*)mHashtable.Remove(&k);
|
||||
if (oldValue)
|
||||
nsCRT::free(oldValue);
|
||||
NS_Free(oldValue);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user