Skip to content

Commit

Permalink
Ref Count Catch
Browse files Browse the repository at this point in the history
With Permission from Jeff Faust.

         // AFX CODE BLOCK (bug-fix) <<
         // for events that are not GuaranteedOrdered we can get here w/o ever
         // incrementing ref-count on the event.
  • Loading branch information
Azaezel committed Dec 23, 2014
1 parent 84430a4 commit dbf9275
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Engine/source/sim/netEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ void NetConnection::eventReadPacket(BitStream *bstream)
if(unguaranteedPhase)
{
evt->process(this);
if (evt->getRefCount() == 0)
evt->incRef();
evt->decRef();
if(mErrorBuffer.isNotEmpty())
return;
Expand Down

0 comments on commit dbf9275

Please sign in to comment.