From 22f766aa97d24e10c0e89583513f6cb2312365be Mon Sep 17 00:00:00 2001 From: Michal Szczecinski Date: Thu, 16 Mar 2023 11:46:31 +0100 Subject: [PATCH] efl ui collection: Fixed possible memory leak. In case of request creation, newly created request was not added to requests lits. Change-Id: I73004e8360c86ac2b377528f0d9d294265f9dc02 --- src/lib/elementary/efl_ui_collection_view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/elementary/efl_ui_collection_view.c b/src/lib/elementary/efl_ui_collection_view.c index d4ef5fe..92b23b5 100644 --- a/src/lib/elementary/efl_ui_collection_view.c +++ b/src/lib/elementary/efl_ui_collection_view.c @@ -374,6 +374,9 @@ _request_add(Eina_List *requests, Efl_Ui_Collection_Request **request, // At this point, we rely on the model caching ability to avoid recreating model (*request)->need_entity = !!need_entity; (*request)->need_size = EINA_TRUE; + //TIZEN_ONLY(20231603) Fixed possible memory leak. + requests = eina_list_append(requests, *request); + // return requests; } -- 2.7.4