devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3b4902e17ee5330685d129b8df21cb9d6fc1ca2d

commit 3b4902e17ee5330685d129b8df21cb9d6fc1ca2d
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Sun Apr 12 20:49:10 2015 -0400

    evas: Fix CID1293000 (resource leak)
    
    Summary: This fixes a resource leak of eina_array in
    eng_ector_renderer_draw which would return without freeing an
    allocated array.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/modules/evas/engines/software_generic/evas_engine.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/modules/evas/engines/software_generic/evas_engine.c 
b/src/modules/evas/engines/software_generic/evas_engine.c
index fb276b9..a5faae3 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -3563,7 +3563,10 @@ eng_ector_renderer_draw(void *data EINA_UNUSED, void 
*context, void *surface, Ec
 
         if (eina_array_count(c) == 0 &&
             eina_array_count(clips) > 0)
-          return ;
+          {
+             eina_array_free(c);
+             return;
+          }
      }
 
    if (eina_array_count(c) == 0)
@@ -3584,7 +3587,7 @@ eng_ector_renderer_draw(void *data EINA_UNUSED, void 
*context, void *surface, Ec
         if (!ne)
           {
              _draw_thread_ector_cleanup(&ector);
-             return ;
+             return;
           }
 
         memcpy(ne, &ector, sizeof (Evas_Thread_Command_Ector));

-- 


Reply via email to