audio: free and assign NULL to global static device pointer
Free and assign NULL to global static device pointer instead of local
pointer to avoid free after use issue.
Bug: 144583303
Signed-off-by:
Harrison Lingren <hlingren@google.com>
Change-Id: Idfdef719320efcd792c7d2ebd7ec2dfe5d3fbfbd
Loading