summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_promise.c
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2016-06-05 20:19:41 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-05 21:59:35 -0300
commit217f3ce842cba43b51d26bf518ecb7c432751ded (patch)
tree18643547efd50106f71445ed5e237936d1adc6ce /src/tests/ecore/ecore_test_promise.c
parentb28f6f2fce202cf90c7f9f01d19b28971eb6021d (diff)
ecore: Fix ecore thread promises
Make sure we free the promise memory, set MAGIC numbers and avoid leaking the underlying eina promise
Diffstat (limited to '')
-rw-r--r--src/tests/ecore/ecore_test_promise.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/ecore/ecore_test_promise.c b/src/tests/ecore/ecore_test_promise.c
index 791e6fce19..5f2a754215 100644
--- a/src/tests/ecore/ecore_test_promise.c
+++ b/src/tests/ecore/ecore_test_promise.c
@@ -348,6 +348,8 @@ static void promise_progress_thread(const void* data EINA_UNUSED,
348{ 348{
349 void* v = (void*)1; 349 void* v = (void*)1;
350 eina_promise_owner_progress(promise, v); 350 eina_promise_owner_progress(promise, v);
351 // Release the promise to avoid leaks
352 eina_promise_owner_value_set(promise, NULL, NULL);
351} 353}
352 354
353static void _progress_callback(void* data EINA_UNUSED, void* value) 355static void _progress_callback(void* data EINA_UNUSED, void* value)