Skip to content

Commit

Permalink
last save
Browse files Browse the repository at this point in the history
  • Loading branch information
maxattack committed Oct 12, 2014
1 parent 172d172 commit fcd992f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/littlepolygon/pools.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Pool

~Pool()
{
clear();
drain();
lpFree(mRecords);
}

Expand All @@ -68,7 +68,7 @@ class Pool
return new(inst) T (std::forward<Args>(args)...);
}

void clear()
void drain()
{
ASSERT(mCurr == 0);
while(mCount > 0) {
Expand Down

0 comments on commit fcd992f

Please sign in to comment.