summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2016-06-06 04:26:02 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-06 04:32:32 -0300
commitf15ae07188b455656fdb657e8e2ed1ac6bd7e3d2 (patch)
tree9022cae48d4aebf3536456e29a394376dfb94936
parent77a2e9744dbb0ac0881cd78d44798ddf6448f662 (diff)
eio: Fix leaks in tests
Diffstat (limited to '')
-rw-r--r--src/tests/eio/eio_model_test_monitor_add.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/eio/eio_model_test_monitor_add.c b/src/tests/eio/eio_model_test_monitor_add.c
index 4a97f0ff70..da24eaba8b 100644
--- a/src/tests/eio/eio_model_test_monitor_add.c
+++ b/src/tests/eio/eio_model_test_monitor_add.c
@@ -38,6 +38,7 @@ _children_removed_cb(void *data EINA_UNUSED, const Eo_Event* event)
38 if(temp_filename && strcmp(filename, temp_filename) == 0) 38 if(temp_filename && strcmp(filename, temp_filename) == 0)
39 ecore_main_loop_quit(); 39 ecore_main_loop_quit();
40 free(filename); 40 free(filename);
41 eina_promise_unref(promise);
41 } 42 }
42 return EINA_TRUE; 43 return EINA_TRUE;
43} 44}
@@ -60,6 +61,8 @@ _children_added_cb(void *data EINA_UNUSED, const Eo_Event* event)
60 } 61 }
61 free(filename); 62 free(filename);
62 63
64 eina_promise_unref(promise);
65
63 return EINA_TRUE; 66 return EINA_TRUE;
64} 67}
65 68