elm_access: mapi have to be set NULL after free(m->api) 38/167238/3
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 16 Jan 2018 09:47:45 +0000 (18:47 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 17 Jan 2018 03:53:22 +0000 (03:53 +0000)
Summary: mapi have to be set NULL after free(m->api)

Reviewers: kimcinoo

Reviewed By: kimcinoo

Differential Revision: https://phab.enlightenment.org/D3756

Change-Id: I114fbe9e84aea06bbb739f2a3949fb2068805db4

src/lib/elementary/elm_access.c

index 2151583..05f4357 100644 (file)
@@ -205,6 +205,7 @@ _access_shutdown(void)
 
    /* _elm_module_unload(); could access m->api and try to free(); */
    ELM_SAFE_FREE(m->api, free);
+   m->api = NULL;
    mapi = NULL;
 }