eio: fix free eina_promises in error_callbacks
authorLarry Jr <larry.olj@gmail.com>
Mon, 6 Jun 2016 06:10:24 +0000 (03:10 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Mon, 6 Jun 2016 06:30:42 +0000 (03:30 -0300)
src/lib/eio/eio_model.c

index e4d4955..da010ef 100644 (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;
      }
 }