forked from enlightenment/efl
do not leak module if user do not want it.
SVN revision: 40924
This commit is contained in:
parent
369a502a28
commit
df58840124
|
@ -139,7 +139,8 @@ static void _dir_list_cb(const char *name, const char *path, void *data)
|
|||
if (!m)
|
||||
return;
|
||||
/* call the user provided cb on this module */
|
||||
cb_data->cb(m, cb_data->data);
|
||||
if (!cb_data->cb(m, cb_data->data))
|
||||
eina_module_delete(m);
|
||||
}
|
||||
}
|
||||
static int _eina_module_count = 0;
|
||||
|
|
Loading…
Reference in New Issue