eina: in case of an error we should exit not continue and manipulate dead data.

This should fix a warning catched by LLVM/Clang.
This commit is contained in:
Cedric Bail 2013-10-04 09:54:27 +09:00
parent 82f5f78dac
commit d52f825de6
1 changed files with 2 additions and 0 deletions

View File

@ -1296,6 +1296,7 @@ eina_value_hash_vset(Eina_Value *value, const char *key, va_list args)
eina_value_type_flush(desc->subtype, mem);
eina_hash_del_by_key(desc->hash, key);
free(mem);
return EINA_FALSE;
}
}
@ -1378,6 +1379,7 @@ eina_value_hash_pset(Eina_Value *value, const char *key, const void *ptr)
eina_value_type_flush(desc->subtype, mem);
eina_hash_del_by_key(desc->hash, key);
free(mem);
return EINA_FALSE;
}
}