Decrementing the ref-count of wl_buffer after effect. 40/89440/1
authorGwanglim Lee <gl77.lee@samsung.com>
Fri, 23 Sep 2016 12:46:50 +0000 (21:46 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Fri, 23 Sep 2016 12:46:50 +0000 (21:46 +0900)
The reference count of wl_buffer will get decremented immediately
after window effect. It will enable the server to clean and flush
the iconified client's wl_buffer.

Change-Id: I09dfe4979f2c75a93974700110e470ecc4edf7e7

src/e_mod_effect.c

index c4613ca..f54d6ab 100644 (file)
@@ -195,11 +195,11 @@ _eff_unref(E_Client *ec)
    EFFINF("eff Unref efc(%p) animating:%d",
           ec->pixmap, ec, efc, efc->animating);
 
-   if ((ec->dead) && (ec->hidden))
-     {
-        if ((efc) && (efc->buffer_ref.buffer))
-          e_comp_wl_buffer_reference(&efc->buffer_ref, NULL);
-     }
+   /* The reference count of wl_buffer will get decremented
+    * immediately after window effect.
+    */
+   if ((efc) && (efc->buffer_ref.buffer))
+     e_comp_wl_buffer_reference(&efc->buffer_ref, NULL);
 
    return ec;
 }