discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=360707e9b14626e4b003233306120b566d689e60

commit 360707e9b14626e4b003233306120b566d689e60
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Fri Apr 4 13:29:34 2014 -0400

    fix tiling memory corruption
    
    CID 1186206
---
 src/modules/tiling/window_tree.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/tiling/window_tree.c b/src/modules/tiling/window_tree.c
index 9470bda..3c71490 100644
--- a/src/modules/tiling/window_tree.c
+++ b/src/modules/tiling/window_tree.c
@@ -190,6 +190,9 @@ tiling_window_tree_remove(Window_Tree *root, Window_Tree 
*item)
           }
         else
           {
+
+             parent->children =
+               eina_inlist_remove(parent->children, EINA_INLIST_GET(item));
              if (grand_parent)
                {
                   /* Update the children's parent. */
@@ -220,9 +223,6 @@ tiling_window_tree_remove(Window_Tree *root, Window_Tree 
*item)
                    * two levels. */
                   item_keep->weight = 1.0;
                }
-
-             parent->children =
-               eina_inlist_remove(parent->children, EINA_INLIST_GET(item));
           }
      }
    else

-- 


Reply via email to