autocomp: Fix not to deallocate memory of eet data descriptor.

It does not need to reset eet data descriptor when eet file is opened
again.
This commit is contained in:
Jaehyun Cho 2016-01-20 14:28:25 +09:00
parent 69d892e4e2
commit 142db7a0f9
1 changed files with 1 additions and 6 deletions

View File

@ -86,12 +86,7 @@ autocomp_load(autocomp_data *ad)
eina_prefix_data_get(PREFIX));
if (ad->source_file)
{
if (lex_desc)
eet_data_descriptor_free(lex_desc);
eet_close(ad->source_file);
}
eet_close(ad->source_file);
ad->source_file = eet_open(buf, EET_FILE_MODE_READ);
ad->lexem_root = (lexem *)eet_data_read(ad->source_file, lex_desc, "node");