felipealmeida pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c9c178f2db01d04fc43ade6f0cdab105a19d4e85

commit c9c178f2db01d04fc43ade6f0cdab105a19d4e85
Author: Larry Jr <larry....@gmail.com>
Date:   Mon Jun 6 03:10:24 2016 -0300

    eio: fix free eina_promises in error_callbacks
---
 src/lib/eio/eio_model.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index e4d4955..da010ef 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -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;
      }
 }
 

-- 


Reply via email to