Do not update buffer after app dead 87/232887/1
authorhyunho <hhstark.kang@samsung.com>
Fri, 8 May 2020 06:39:48 +0000 (15:39 +0900)
committerhyunho <hhstark.kang@samsung.com>
Fri, 8 May 2020 06:39:48 +0000 (15:39 +0900)
Change-Id: Id7aab3c5e0eca6ff5b113cec92a44364a413c299
Signed-off-by: hyunho <hhstark.kang@samsung.com>
screen_connector_remote_surface/remote_surface.cc

index 0fc70ea737af9f148e6b1ed3a32edcf641e91185..a1f668be7ee7d1a465c2b1e61d01dc21ac322e8b 100644 (file)
@@ -233,7 +233,7 @@ void RemoteSurface::Impl::OnRawBufferChanged(int type,
                                              std::shared_ptr<WlBuffer> tbm,
                                              int fd, uint32_t size,
                                              uint32_t time) {
-  if (bind_surface_.get() != nullptr || block_)
+  if (bind_surface_.get() != nullptr || block_ || disposed_)
     return;
 
   LOGD("resource_id : %s", parent_->GetInstId().c_str());