cleanup any remaning damage rectangles when we delete the client
authorChris Michael <cp.michael@samsung.com>
Thu, 16 Oct 2014 15:37:45 +0000 (11:37 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 30 Oct 2014 14:39:07 +0000 (10:39 -0400)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_comp_wl.c

index b6b2528..0481e9f 100644 (file)
@@ -696,6 +696,7 @@ static void
 _e_comp_wl_client_cb_del(void *data EINA_UNUSED, E_Client *ec)
 {
    uint64_t win;
+   Eina_Rectangle *dmg;
 
    DBG("Comp Hook Client Del");
 
@@ -727,9 +728,10 @@ _e_comp_wl_client_cb_del(void *data EINA_UNUSED, E_Client *ec)
         ec->parent->modal = NULL;
      }
 
-   E_FREE(ec->comp_data);
+   EINA_LIST_FREE(ec->comp_data->pending.damage, dmg)
+     eina_rectangle_free(dmg);
 
-   /* TODO */
+   E_FREE(ec->comp_data);
 }
 
 static Eina_Bool