Skip to content

Commit

Permalink
Actually frees bits
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaltares committed Nov 9, 2015
1 parent 9ae5e45 commit b8a37eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ashley/src/com/badlogic/ashley/core/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ private void updateFamilyMembership (Entity entity, boolean removing) {

addListenerBits.clear();
removeListenerBits.clear();
bitsPool.free(addListenerBits);
bitsPool.free(removeListenerBits);
entityListeners.end();
notifying = false;
}
Expand Down

0 comments on commit b8a37eb

Please sign in to comment.