This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efl.
View the commit online.
commit 249dbe387a75f84bdc51c1409d53fc54b4a75a56
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 8 15:30:22 2026 -0600
tests: efl_test_select_model gives its two models back
The test made a Generic_Model and a Select_Model with efl_add_ref()
under the main loop and never unreffed them, so valgrind reported both,
and everything they hold (the Boolean_Model storage and hashes the
Select_Model makes in its constructor, the child models, the view model
callbacks), as lost. Nothing in Select_Model or Boolean_Model leaks:
with the two refs given back no leak is attributed to the models or the
test, and the other tests of the case, which already unref, are quiet.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/tests/elementary/efl_ui_test_select_model.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/tests/elementary/efl_ui_test_select_model.c b/src/tests/elementary/efl_ui_test_select_model.c
index b70f15dd17..39fe9838b2 100644
--- a/src/tests/elementary/efl_ui_test_select_model.c
+++ b/src/tests/elementary/efl_ui_test_select_model.c
@@ -125,6 +125,11 @@ EFL_START_TEST(efl_test_select_model)
eina_iterator_free(it);
efl_model_property_set(model, "child.selected", eina_value_int_new(1));
+
+ // both were made with efl_add_ref: the refs are the test's to give back
+ efl_unref(model);
+ efl_unref(base_model);
+ eina_value_flush(&v);
}
EFL_END_TEST
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.