forked from enlightenment/efl
Check for valid out_file before trying to write eet data to it.
NB: Fixes klockwork issue. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
ed08c1832c
commit
292d23321c
|
@ -1367,19 +1367,21 @@ main(int argc, char **argv)
|
||||||
fl->list = eina_list_append(fl->list, fnt->f);
|
fl->list = eina_list_append(fl->list, fnt->f);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
if (out_file)
|
||||||
/* Write Fonts from all files */
|
{
|
||||||
Eet_Data_Descriptor *_font_list_edd = NULL;
|
/* Write Fonts from all files */
|
||||||
Eet_Data_Descriptor *_font_edd;
|
Eet_Data_Descriptor *_font_list_edd = NULL;
|
||||||
|
Eet_Data_Descriptor *_font_edd;
|
||||||
|
|
||||||
_edje_data_font_list_desc_make(&_font_list_edd, &_font_edd);
|
_edje_data_font_list_desc_make(&_font_list_edd, &_font_edd);
|
||||||
bytes = eet_data_write(out_file->ef, _font_list_edd,
|
bytes = eet_data_write(out_file->ef, _font_list_edd,
|
||||||
"edje_source_fontmap", fl, comp_mode);
|
"edje_source_fontmap", fl, comp_mode);
|
||||||
VERBOSE(EINA_LOG_INFO("Wrote <%d> bytes for fontmap.\n", bytes));
|
VERBOSE(EINA_LOG_INFO("Wrote <%d> bytes for fontmap.\n", bytes));
|
||||||
|
|
||||||
|
eet_data_descriptor_free(_font_list_edd);
|
||||||
|
eet_data_descriptor_free(_font_edd);
|
||||||
|
}
|
||||||
|
|
||||||
eet_data_descriptor_free(_font_list_edd);
|
|
||||||
eet_data_descriptor_free(_font_edd);
|
|
||||||
}
|
|
||||||
free(fl);
|
free(fl);
|
||||||
|
|
||||||
if (sets)
|
if (sets)
|
||||||
|
|
Loading…
Reference in New Issue