forked from enlightenment/efl
eolian/generator: fix coverity issues
Fixes CID 1228663 and 1228634.
This commit is contained in:
parent
987cde5f35
commit
0c3487cd3d
|
@ -275,7 +275,8 @@ impl_source_generate(const Eolian_Class *class, Eina_Strbuf *buffer)
|
|||
}
|
||||
eina_iterator_free(itr);
|
||||
|
||||
if (eolian_class_implements_get(class))
|
||||
itr = eolian_class_implements_get(class);
|
||||
if (itr)
|
||||
{
|
||||
Eolian_Implement *impl_desc;
|
||||
EINA_ITERATOR_FOREACH(itr, impl_desc)
|
||||
|
|
|
@ -171,10 +171,9 @@ _generate_impl_c_file(char *filename, const Eolian_Class *class)
|
|||
if (eina_strbuf_string_get(buffer))
|
||||
fputs(eina_strbuf_string_get(buffer), fd);
|
||||
|
||||
fclose(fd);
|
||||
|
||||
ret = EINA_TRUE;
|
||||
end:
|
||||
fclose(fd);
|
||||
eina_strbuf_free(buffer);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue