[access] set a module api to NULL in shutdown();
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 9 May 2013 09:12:07 +0000 (18:12 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Mon, 27 May 2013 05:15:43 +0000 (14:15 +0900)
Change-Id: Ia9322eb4da59ba301f7c9b95430971360e738306

src/lib/elm_access.c

index 2c24932..008c2da 100644 (file)
@@ -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;
 }