do not leak module if user do not want it.

SVN revision: 40924
This commit is contained in:
Gustavo Sverzut Barbieri 2009-06-06 22:53:03 +00:00
parent 369a502a28
commit df58840124
1 changed files with 2 additions and 1 deletions

View File

@ -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;