Use proper new/delete operators

git-svn-id: svn://10.0.0.236/trunk@22854 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-03-05 04:36:00 +00:00
parent 54765b7652
commit 00c7d42996
7 changed files with 7 additions and 35 deletions

View File

@@ -63,11 +63,7 @@ public:
nsPluginHostImpl(nsIServiceManager *serviceMgr);
~nsPluginHostImpl();
void* operator new(size_t sz) {
void* rv = new char[sz];
nsCRT::zero(rv, sz);
return rv;
}
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
NS_DECL_ISUPPORTS