audio: free and assign NULL to global static device pointer

From: Preetam Singh Ranawat <apranawat@codeaurora.org>
Date: Mon, 24 Jun 2019 15:11:28 +0530
Subject: 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 use after free issue.

Bug: 142267478
Test: manual
Change-Id: I6f64fe0f6034844279c9a481726426dc5b989b41
(cherry picked from commit 73d6b59977595c1d0a222a1656f298e7991e43b9)
1 file changed
tree: 56cb73a9204bdf3bd3019b7d5d0eb43ea89f6ce6
  1. hal/
  2. legacy/
  3. post_proc/
  4. visualizer/
  5. voice_processing/
  6. Android.mk
  7. OWNERS