aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/efl_mono/libefl_mono_native_test.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-04-11 10:38:21 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:17 -0700
commitccb5642eb9c122deac271da5f8b1353f46d73160 (patch)
tree9a0a93692425677f4853a6f1b8dadd6ee430c5ec /src/tests/efl_mono/libefl_mono_native_test.c
parenteo: to avoid mistake in timing, efl_invalidate should always be triggered bef... (diff)
downloadefl-ccb5642eb9c122deac271da5f8b1353f46d73160.tar.gz
Revert "efl_add_ref - fis to use efl_add properly with a parent."
This reverts commit 2fb5cc3ad09f6aaf82b5d1131ac5ed22ed848bd4. Most of this change where wrong as they didn't affect the destruction of the object. efl_add_ref allow for manual handling of the lifecycle of the object and make sure it is still alive during destructor. efl_add will not allow you to access an object after invalidate also efl.parent.get will always return NULL once the object is invalidated. Differential Revision: https://phab.enlightenment.org/D6062
Diffstat (limited to 'src/tests/efl_mono/libefl_mono_native_test.c')
-rw-r--r--src/tests/efl_mono/libefl_mono_native_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/efl_mono/libefl_mono_native_test.c b/src/tests/efl_mono/libefl_mono_native_test.c
index 346ef2cb2c..3f5562c749 100644
--- a/src/tests/efl_mono/libefl_mono_native_test.c
+++ b/src/tests/efl_mono/libefl_mono_native_test.c
@@ -88,7 +88,7 @@ char **_new_str_ref(const char* str)
static
Test_Numberwrapper *_new_obj(int n)
{
- return efl_add(TEST_NUMBERWRAPPER_CLASS, efl_main_loop_get(), test_numberwrapper_number_set(efl_added, n));
+ return efl_add_ref(TEST_NUMBERWRAPPER_CLASS, NULL, test_numberwrapper_number_set(efl_added, n));
}
static