fetch reqs can have no module (on delete)

This commit is contained in:
zmike 2014-02-05 18:34:22 -05:00
parent bbe37237d5
commit da8562e8ad
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ metadata_fetch_cancel(Empc_Fetch_Request *req)
Empc_Fetch_Request_Internal *ireq = (Empc_Fetch_Request_Internal*)req;
if (!req) return;
if (!ireq->module) return;
em = (Empc_Module_Metadata_Fetch*)ireq->module;
if (em->cancel) em->cancel(req);
eina_hash_del_by_data(empc_metadata_fetch_reqs[ireq->module->type], req);