Summary: fixed by null handling
Test Plan: N/A
Reviewers: Hermet, YOhoho, cedric
Reviewed By: cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10850
Change-Id: I4822201dca0b7ad840128c2488e2598a1eb352fc
}
else if (type == EINA_VALUE_TYPE_STRING)
{
- if (value->value.ptr) free(value->value.ptr);
+ if (value->value.ptr)
+ {
+ free(value->value.ptr);
+ value->value.ptr = NULL;
+ }
}
else if (type->value_size > 8)
eina_value_inner_free(type->value_size, mem);