e_policy_visibility: do not remove vc->buf_attach event handler while executing pende... 23/269823/1 accepted/tizen/unified/20220121.123008 submit/tizen/20220120.081949
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 20 Jan 2022 06:24:27 +0000 (15:24 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 20 Jan 2022 08:06:20 +0000 (17:06 +0900)
There was an issue that the E_Vis_Grab resource which was wating for buffer attach event
couldn't freed if the E_Vis_Grab's timer was expired.
This resource would be freed when the E_Client was destroyed.
However, if the E_Client is not destroyed, then the memory can be increased continuousely.

This patch makes the E_Vis_Grab resource to be freed when a timeout is occured.

Change-Id: Ia6a1bee0ddeddaef42a52bd384ba50d027033827

src/bin/e_policy_visibility.c

index f9eba3e..da9430c 100644 (file)
@@ -948,10 +948,6 @@ _e_vis_client_job_exec(E_Vis_Client *vc, E_Vis_Job_Type type)
              e_pixmap_free(vc->ec->pixmap);
              e_object_delay_del_unref(E_OBJECT(vc->ec));
           }
-        else
-          {
-             E_FREE_FUNC(vc->buf_attach, ecore_event_handler_del);
-          }
      }
 }