jackdanielz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=779b834c8d4a7ffbbd4c60d46397c0ed78e0715d
commit 779b834c8d4a7ffbbd4c60d46397c0ed78e0715d Author: Daniel Zaoui <daniel.za...@samsung.com> Date: Thu Nov 12 08:39:46 2015 +0200 Clouseau: handle case when the library is not installed Eina module errors are printed on the screen when the library is not installed in the system and Clouseau debug is enabled. The module pointer is not NULL checked, leading to an error message when trying to load this NULL module. @fix --- src/lib/elm_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index af147bd..9ad2e8d 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -248,10 +248,10 @@ _elm_clouseau_reload() _clouseau_info.handle = eina_module_new( PACKAGE_LIB_DIR "/libclouseau" LIBEXT); - if (!eina_module_load(_clouseau_info.handle)) + if (!_clouseau_info.handle || !eina_module_load(_clouseau_info.handle)) { WRN("Failed loading the clouseau library."); - eina_module_free(_clouseau_info.handle); + if (_clouseau_info.handle) eina_module_free(_clouseau_info.handle); _clouseau_info.handle = NULL; return EINA_FALSE; } --