discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=31157dadcc94dd98a7cd28d44f8d9413dd5ded29

commit 31157dadcc94dd98a7cd28d44f8d9413dd5ded29
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon Dec 7 20:01:03 2015 +0900

    e randr - fix leak of modes list in randr code
    
    this fixes a leak of the modes list in randr
    
    @fix
---
 src/bin/e_randr2.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_randr2.c b/src/bin/e_randr2.c
index 7bb428f..cec48bb 100644
--- a/src/bin/e_randr2.c
+++ b/src/bin/e_randr2.c
@@ -810,7 +810,10 @@ again:
      {
         // one of the common modes matches the base config - we are ok
         if ((m->w == sbase->config.mode.w) && (m->h == sbase->config.mode.h))
-          return;
+          {
+             modes = eina_list_free(modes);
+             return;
+          }
      }
    // find a common mode since current config doesn't match
    EINA_LIST_FOREACH(modes, l, m)

-- 


Reply via email to