summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/dummy_test_object.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/efl_mono/dummy_test_object.c')
-rw-r--r--src/tests/efl_mono/dummy_test_object.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/tests/efl_mono/dummy_test_object.c b/src/tests/efl_mono/dummy_test_object.c
index 54a2c2c..fb87a8c 100644
--- a/src/tests/efl_mono/dummy_test_object.c
+++ b/src/tests/efl_mono/dummy_test_object.c
@@ -217,12 +217,16 @@ void _dummy_test_object_out_own_string(EINA_UNUSED Eo *obj, EINA_UNUSED Dummy_Te
217 217
218void _dummy_test_object_call_in_string(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, const char *str) 218void _dummy_test_object_call_in_string(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, const char *str)
219{ 219{
220 dummy_test_object_in_string(obj, str); 220 char *ptr = dummy_test_object_in_string(obj, str);
221 if (ptr)
222 free(ptr);
221} 223}
222 224
223void _dummy_test_object_call_in_own_string(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, char *str) 225void _dummy_test_object_call_in_own_string(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, char *str)
224{ 226{
225 dummy_test_object_in_own_string(obj, str); 227 char *ptr = dummy_test_object_in_own_string(obj, str);
228 if (ptr)
229 free(ptr);
226} 230}
227 231
228const char *_dummy_test_object_call_return_string(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd) 232const char *_dummy_test_object_call_return_string(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd)
@@ -252,7 +256,9 @@ char *_dummy_test_object_call_out_own_string(Eo *obj, EINA_UNUSED Dummy_Test_Obj
252// Stringshare virtual test helpers 256// Stringshare virtual test helpers
253void _dummy_test_object_call_in_stringshare(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, Eina_Stringshare *str) 257void _dummy_test_object_call_in_stringshare(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, Eina_Stringshare *str)
254{ 258{
255 dummy_test_object_in_stringshare(obj, str); 259 Eina_Stringshare *ptr = dummy_test_object_in_stringshare(obj, str);
260 if (ptr)
261 eina_stringshare_del(ptr);
256} 262}
257 263
258void _dummy_test_object_call_in_own_stringshare(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, Eina_Stringshare *str) 264void _dummy_test_object_call_in_own_stringshare(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, Eina_Stringshare *str)