MCPcopy Create free account
hub / github.com/assaultcube/AC / purge

Method purge

source/src/master.cpp:444–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void messagebuf::purge()
445{
446 refs = max(refs - 1, 0);
447 if(refs<=0 && owner.last()!=this)
448 {
449 owner.removeobj(this);
450 delete this;
451 }
452}
453
454// for AUTH:
455void purgeauths(mclient &c)

Callers 2

purgeclientFunction · 0.80
loopvFunction · 0.80

Calls 2

maxFunction · 0.85
removeobjMethod · 0.80

Tested by

no test coverage detected