eio: Fix leaks in tests

This commit is contained in:
Lauro Moura 2016-06-06 04:26:02 -03:00 committed by Felipe Magno de Almeida
parent 77a2e9744d
commit f15ae07188
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,7 @@ _children_removed_cb(void *data EINA_UNUSED, const Eo_Event* event)
if(temp_filename && strcmp(filename, temp_filename) == 0)
ecore_main_loop_quit();
free(filename);
eina_promise_unref(promise);
}
return EINA_TRUE;
}
@ -60,6 +61,8 @@ _children_added_cb(void *data EINA_UNUSED, const Eo_Event* event)
}
free(filename);
eina_promise_unref(promise);
return EINA_TRUE;
}