Fix memory leak issue 20/175220/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 9 Apr 2018 09:50:55 +0000 (18:50 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 9 Apr 2018 09:50:55 +0000 (18:50 +0900)
Change-Id: I4edfd884552be40ddd3be851a2c20ed450c811e4
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/w-input-selector.cpp

index 4b77b7a..f9c1243 100755 (executable)
@@ -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,