kimcinoo pushed a commit to branch master.

commit 322723ee0463a9b97d3c0cdae6beccb3e8f46e41
Author: Shinwoo Kim <[email protected]>
Date:   Fri Jul 5 19:02:57 2013 +0900

    [access] set a module api to NULL in shutdown(); because 
_elm_module_unload(); could access m->api and try to free();
---
 src/lib/elm_access.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elm_access.c b/src/lib/elm_access.c
index 89d9471..7d88085 100644
--- a/src/lib/elm_access.c
+++ b/src/lib/elm_access.c
@@ -191,7 +191,8 @@ _access_shutdown(void)
 
    initted = 0;
 
-   ELM_SAFE_FREE(mapi, free);
+   /* _elm_module_unload(); could access m->api and try to free(); */
+   ELM_SAFE_FREE(m->api, free);
 }
 
 static Elm_Access_Item *

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to