From: Jihoon Kim Date: Mon, 9 Apr 2018 09:50:55 +0000 (+0900) Subject: Fix memory leak issue X-Git-Tag: accepted/tizen/unified/20180410.063659~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6996e35f31ac12647dc9987dad29d11782732c2;hp=305b4291ef028a5994fedbcd2ee6beb17bb47458;p=platform%2Fcore%2Fuifw%2Finputdelegator.git Fix memory leak issue Change-Id: I4edfd884552be40ddd3be851a2c20ed450c811e4 Signed-off-by: Jihoon Kim --- diff --git a/src/w-input-selector.cpp b/src/w-input-selector.cpp index 4b77b7a..f9c1243 100755 --- a/src/w-input-selector.cpp +++ b/src/w-input-selector.cpp @@ -1019,8 +1019,10 @@ unsigned int _update_smartreply_items(void *user_data) } } - if (matched == true) + if (matched == true) { + free(reply); continue; + } elm_genlist_item_append(app_data->genlist, itc,