raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=60d2bd233b1ad2a56f9107c5e664b2d28594fd1d

commit 60d2bd233b1ad2a56f9107c5e664b2d28594fd1d
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Jul 23 18:29:57 2017 +0900

    evas module load add comments pointing out this is intentional ptr loss
---
 src/lib/evas/file/evas_module.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/evas/file/evas_module.c b/src/lib/evas/file/evas_module.c
index 31bceec120..003c84c75a 100644
--- a/src/lib/evas/file/evas_module.c
+++ b/src/lib/evas/file/evas_module.c
@@ -593,7 +593,11 @@ evas_module_find_type(Evas_Module_Type type, const char 
*name)
              eina_module_free(en);
              continue;
           }
-
+        // this is intentional. the above module load if it succeeds
+        // registers the evas module below in the table that we then
+        // lookup in the hash... and then load that as a 2nd stage.
+        // since we will never unload a module once used it doesnt matter
+        // what happens to the handle anyway.
         em = eina_hash_find(evas_modules[type], name);
         if (em)
           {

-- 


Reply via email to