raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4387f34b5475bdf6136a12fdf791efe3131d07ac

commit 4387f34b5475bdf6136a12fdf791efe3131d07ac
Author: Ivan Furs <i.f...@samsung.com>
Date:   Wed Jul 13 21:01:50 2016 +0900

    [Bug] EFL memory leak on Windows(handler continuously increasing)
    
    Summary:
    Fix: event need to clese  when create event:
      event = WSACreateEvent();
    
    Reviewers: bowonryu, herb, Jaehyun, thiepha, Hermet, jaehwan, cedric, raster
    
    Reviewed By: raster
    
    Subscribers: NikaWhite, reutskiy.v.v, artem.popov
    
    Differential Revision: https://phab.enlightenment.org/D4157
---
 src/lib/ecore/ecore_main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index 999b3f8..354edc9 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -2603,9 +2603,8 @@ _ecore_main_win32_select(int             nfds EINA_UNUSED,
 
    if (timeout == 0)
      {
-        free(objects);
-        free(sockets);
-        return 0;
+        res = 0;
+        goto err;
      }
 
    result = _ecore_main_win32_objects_wait(objects_nbr,
@@ -2701,6 +2700,7 @@ _ecore_main_win32_select(int             nfds EINA_UNUSED,
         res = -1;
      }
 
+err :
    /* Remove event objects again */
    for (i = 0; i < events_nbr; i++) WSACloseEvent(objects[i]);
 

-- 


Reply via email to