1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Fix ConsoleTrigger memory leak

This commit is contained in:
2014-04-26 17:36:18 -04:00
parent 133098c18e
commit 4e35dbf528
3 changed files with 13 additions and 10 deletions

View File

@ -56,10 +56,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
void plLogicModBase::ConsoleTrigger(plKey playerKey)
{
// Setup the event data in case this is a OneShot responder that needs it
proPickedEventData *ed = new proPickedEventData;
ed->fPicker = playerKey;
ed->fPicked = nil;
fNotify->AddEvent(ed);
proPickedEventData ed;
ed.fPicker = playerKey;
ed.fPicked = nullptr;
fNotify->AddEvent(&ed);
Trigger(false);