From 23fe272e2a143412e0be517e47e2ca3ae18f5419 Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Thu, 9 May 2013 18:12:07 +0900 Subject: [PATCH] [access] set a module api to NULL in shutdown(); Change-Id: Ia9322eb4da59ba301f7c9b95430971360e738306 --- src/lib/elm_access.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_access.c b/src/lib/elm_access.c index 2c24932..008c2da 100644 --- a/src/lib/elm_access.c +++ b/src/lib/elm_access.c @@ -204,7 +204,9 @@ _access_shutdown(void) initted = 0; - free(mapi); + /* FIXME: _elm_module_unload(); could access m->api and try to free(); */ + free(m->api); + m->api = NULL; mapi = NULL; } -- 2.7.4