should decrease ec's ref_count when removing ec from post_updates 64/48064/2
authorBoram Park <boram1288.park@samsung.com>
Sat, 12 Sep 2015 09:36:27 +0000 (18:36 +0900)
committerBoram Park <boram1288.park@samsung.com>
Sat, 12 Sep 2015 10:29:35 +0000 (19:29 +0900)
  because we increase ec's ref_count when adding ec to post_updates.

Change-Id: I44e47edfc031ba93ce0b67be9e5ad689db5fc97b

src/bin/e_comp_canvas.c

index 8d7ab68..3b118fb 100644 (file)
@@ -638,6 +638,9 @@ e_comp_post_update_purge(E_Client *ec)
    EINA_LIST_FOREACH_SAFE(e_comp->post_updates, l, ll, ec2)
      {
         if (ec2 == ec)
-          e_comp->post_updates = eina_list_remove_list(e_comp->post_updates, l);
+          {
+             e_comp->post_updates = eina_list_remove_list(e_comp->post_updates, l);
+             e_object_unref(E_OBJECT(ec));
+          }
      }
 }