evas: unset the right backend when unregistering module.

This commit is contained in:
Rajesh P S 2013-07-30 14:52:06 +09:00 committed by Cedric Bail
parent 74fadb26fa
commit 916f047935
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ evas_module_unregister(const Evas_Module_Api *module, Evas_Module_Type type)
if (!em || em->definition != module) return EINA_FALSE;
if (type == EVAS_MODULE_TYPE_ENGINE)
eina_array_data_set(evas_engines, em->id_engine, NULL);
eina_array_data_set(evas_engines, em->id_engine - 1, NULL);
eina_hash_del(evas_modules[type], module->name, em);
free(em);