fetch reqs can have no module (on delete)
This commit is contained in:
parent
bbe37237d5
commit
da8562e8ad
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue