Skip to content

Commit

Permalink
Make sure ContactCache is disposed if it has been created
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Ski committed Nov 10, 2017
1 parent 8204a7d commit 49e4fe0
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -187,6 +187,8 @@ public boolean tap (float x, float y, int count, int button) {
public void dispose () {
// Deleting the active contact listener, also disables that particular type of contact listener.
if (contactListener != null) contactListener.dispose();
if (contactCache != null) contactCache.dispose();
contactCache = null;
contactListener = null;

super.dispose();
Expand Down

0 comments on commit 49e4fe0

Please sign in to comment.