Tiling2: Fixed a bug in tree-walker.
authorTom Hacohen <tom@stosb.com>
Mon, 13 Jan 2014 17:28:46 +0000 (17:28 +0000)
committerTom Hacohen <tom@stosb.com>
Fri, 21 Feb 2014 09:15:05 +0000 (09:15 +0000)
src/modules/tiling/window_tree.c

index 5f2bbfc..ac05929 100644 (file)
@@ -7,6 +7,9 @@ tiling_window_tree_walk(Window_Tree *root, void (*func)(void *))
 {
    Eina_Inlist *itr_safe;
    Window_Tree *itr;
+   if (!root)
+      return;
+
    EINA_INLIST_FOREACH_SAFE(root->children, itr_safe, itr)
      {
         tiling_window_tree_free(itr);