seoz pushed a commit to branch master.
commit 09070da6414f79af7e59068afc863b4aecc74431
Author: Daniel Juyung Seo <[email protected]>
Date: Wed May 29 21:04:40 2013 +0900
elm_module.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as
recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
---
src/lib/elm_module.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/lib/elm_module.c b/src/lib/elm_module.c
index a7e31dd..72720f4 100644
--- a/src/lib/elm_module.c
+++ b/src/lib/elm_module.c
@@ -218,11 +218,7 @@ _elm_module_unload(Elm_Module *m)
eina_stringshare_del(m->so_path);
eina_stringshare_del(m->data_dir);
eina_stringshare_del(m->bin_dir);
- if (m->api)
- {
- free(m->api);
- m->api = NULL;
- }
+ ELM_SAFE_FREE(m->api, free);
if (m->module)
{
if (m->shutdown_func) m->shutdown_func(m);
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1