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
This commit is contained in:
Avi Levin 2015-01-12 13:34:01 +02:00 committed by Tom Hacohen
parent 82014cad2c
commit dad44a7100
1 changed files with 2 additions and 2 deletions

View File

@ -33,11 +33,11 @@ START_TEST(eo_value)
eina_value_get(&val2, &eo_val);
eina_value_pget(&eo_val, &tmpp);
fail_if(!tmpp);
eina_value_free(&val2);
eina_value_flush(&val2);
eina_value_setup(&val2, EINA_VALUE_TYPE_INT);
fail_if(eina_value_convert(&eo_dbg_info->value, &val2));
eina_value_free(&val2);
eina_value_flush(&val2);
free(str);
free(str2);