mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Get rid of NEW(), TRACKED_NEW, and ZERO().
This commit is contained in:
@ -289,7 +289,7 @@ void plKeyImp::UnRefObject(plRefFlags::Type flags)
|
||||
ClearNotifyCreated();
|
||||
|
||||
plKey key=plKey::Make( this ); // for linux build
|
||||
plSelfDestructMsg* nuke = TRACKED_NEW plSelfDestructMsg( key );
|
||||
plSelfDestructMsg* nuke = new plSelfDestructMsg( key );
|
||||
plgDispatch::Dispatch()->MsgSend(nuke);
|
||||
}
|
||||
}
|
||||
@ -444,7 +444,7 @@ void plKeyImp::SatisfyPending() const
|
||||
if (!--fPendingRefs)
|
||||
{
|
||||
#ifdef PL_SEND_SATISFIED
|
||||
plSatisfiedMsg* msg = TRACKED_NEW plSatisfiedMsg(this);
|
||||
plSatisfiedMsg* msg = new plSatisfiedMsg(this);
|
||||
plgDispatch::MsgSend(msg);
|
||||
#endif // PL_SEND_SATISFIED
|
||||
}
|
||||
@ -645,7 +645,7 @@ void plKeyImp::IRelease(plKeyImp* iTargetKey)
|
||||
iTargetKey->ClearNotifyCreated();
|
||||
|
||||
plKey key = plKey::Make(iTargetKey);
|
||||
plSelfDestructMsg* nuke = TRACKED_NEW plSelfDestructMsg(key);
|
||||
plSelfDestructMsg* nuke = new plSelfDestructMsg(key);
|
||||
plgDispatch::Dispatch()->MsgSend(nuke);
|
||||
}
|
||||
else
|
||||
|
@ -124,7 +124,7 @@ hsBool plMsgForwarder::IForwardCallbackMsg(plMessage *msg)
|
||||
hsAssert(event, "Message forwarder only supports event callback messages");
|
||||
if (event)
|
||||
{
|
||||
plForwardCallback *fc = TRACKED_NEW plForwardCallback;
|
||||
plForwardCallback *fc = new plForwardCallback;
|
||||
fc->fNumCallbacks = fForwardKeys.Count();
|
||||
|
||||
// Turn off net propagate the callbacks to us will all be local. Only the
|
||||
|
Reference in New Issue
Block a user