Skip to content

Commit

Permalink
reset before doing a release (#10800)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga authored and ssekhri committed Sep 16, 2019
1 parent 438a43a commit 50c645e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ public void release()
{
TiSound s = getSound();
if (s != null) {
s.reset();
s.release();
snd = null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ public void release()
mp.setOnBufferingUpdateListener(null);
mp.setOnInfoListener(null);

mp.reset();
mp.release();
mp = null;
Log.d(TAG, "Native resources released.", Log.DEBUG_MODE);
Expand Down

0 comments on commit 50c645e

Please sign in to comment.