summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Levin <avi.levin@samsung.com>2015-01-12 13:34:01 +0200
committerTom Hacohen <tom@stosb.com>2015-01-12 11:57:53 +0000
commit8040d1f3c59ab9f0cac3b2aa850ad78ab7bd9ba1 (patch)
tree2a1fb3836ee2995bf9e5200e4f98ac58094f831f
parentfb25bf332264d3f2d7b4c89692d321dec8bd9520 (diff)
Eo tests: Fix bad free in eo_test_value
When running eo_test_suite we get an memory error: "double free or corruption". That error arises because we try to free an Eina_Value value in eo_test_value that doesn't need to freed. I switched the eina_value_free to wina_value_flush, the proper way of releasing it. @fix
-rw-r--r--src/tests/eo/suite/eo_test_value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/eo/suite/eo_test_value.c b/src/tests/eo/suite/eo_test_value.c
index afdec776ce..2372d069ba 100644
--- a/src/tests/eo/suite/eo_test_value.c
+++ b/src/tests/eo/suite/eo_test_value.c
@@ -33,11 +33,11 @@ START_TEST(eo_value)
33 eina_value_get(&val2, &eo_val); 33 eina_value_get(&val2, &eo_val);
34 eina_value_pget(&eo_val, &tmpp); 34 eina_value_pget(&eo_val, &tmpp);
35 fail_if(!tmpp); 35 fail_if(!tmpp);
36 eina_value_free(&val2); 36 eina_value_flush(&val2);
37 37
38 eina_value_setup(&val2, EINA_VALUE_TYPE_INT); 38 eina_value_setup(&val2, EINA_VALUE_TYPE_INT);
39 fail_if(eina_value_convert(&eo_dbg_info->value, &val2)); 39 fail_if(eina_value_convert(&eo_dbg_info->value, &val2));
40 eina_value_free(&val2); 40 eina_value_flush(&val2);
41 41
42 free(str); 42 free(str);
43 free(str2); 43 free(str2);