[automerger skipped] [RESTRICT AUTOMERGE] Fix double free of play policy in a race condition. am: a9249b2326 -s ours

am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/13290132

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I351a31cb93f401a0fd59d3a8d43789500fb17da6