summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-08 16:16:42 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-08 16:16:42 +0900
commit35505188570574824b87d6aae2b433008ed4d157 (patch)
treeb6ab4c73a00d60c0ffac62a6b831db75581670e3
parentdea408a2a4f1651f8ade3c4105b9d26b8cfe29b0 (diff)
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.
-rw-r--r--src/lib/elm_entry.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 439df3184..4a2cfaf19 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -2871,6 +2871,11 @@ _elm_entry_elm_layout_text_set(Eo *obj, Elm_Entry_Data *sd, const char *part, co
2871 } 2871 }
2872 2872
2873 len = strlen(entry); 2873 len = strlen(entry);
2874 if (sd->append_text_left)
2875 {
2876 free(sd->append_text_left);
2877 sd->append_text_left = NULL;
2878 }
2874 /* Split to ~ ELM_ENTRY_CHUNK_SIZE chunks */ 2879 /* Split to ~ ELM_ENTRY_CHUNK_SIZE chunks */
2875 if (len > ELM_ENTRY_CHUNK_SIZE) 2880 if (len > ELM_ENTRY_CHUNK_SIZE)
2876 { 2881 {