Reset g_mgr_client when client is destroyed 21/286121/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 9 Nov 2022 04:34:51 +0000 (13:34 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 28 Dec 2022 08:08:45 +0000 (17:08 +0900)
commitc0f18e86f12d563b775eb584ccf0a93ebc617ac6
treea3397e3f102dcd059c15f96d48e74a134f0f53ec
parent9354dc71d6108accc4e8131b23926eb5c5f87cbe
Reset g_mgr_client when client is destroyed

- Issue:
App can access g_mgr_client even if vc mgr was deinitialized.

- Solution:
VC mgr client module did not assign null in g_mgr_client when
vc_mgr_client_destroy() is invoked. Thus, app still can access the
dereferenced pointer in g_mgr_client after calling
vc_mgr_deinitialized(). This patch sets null in g_mgr_client when app
invokes the vc_mgr_deinitialize(). Through this patch, the client
structure of vc mgr is properly reset.

Change-Id: I8c20e70960607257fa5e80b961c610b5aaf51f9a
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/vc_mgr_client.c