elm entry - fix CID 1194480 in coverity

if sd->append_text_left was still set, free it - in case it was and
idler was not set.
This commit is contained in:
Carsten Haitzler 2014-08-08 16:16:42 +09:00
parent 38645b22b1
commit f712ac567b
1 changed files with 5 additions and 0 deletions

View File

@ -2871,6 +2871,11 @@ _elm_entry_elm_layout_text_set(Eo *obj, Elm_Entry_Data *sd, const char *part, co
}
len = strlen(entry);
if (sd->append_text_left)
{
free(sd->append_text_left);
sd->append_text_left = NULL;
}
/* Split to ~ ELM_ENTRY_CHUNK_SIZE chunks */
if (len > ELM_ENTRY_CHUNK_SIZE)
{