eio: fix free eina_promises in error_callbacks

This commit is contained in:
Larry Jr 2016-06-06 03:10:24 -03:00 committed by Felipe Magno de Almeida
parent 2e441c3f5e
commit c9c178f2db
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@ _eio_error_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED, int error)
{
eina_promise_owner_error_set(p->promise, EFL_MODEL_ERROR_UNKNOWN);
}
eina_list_free(priv->property_promises);
priv->property_promises = NULL;
eio_file_cancel(priv->stat_file);
priv->stat_file = NULL;
}
}