const std::string& instId,
const int pid,
const unsigned int surfaceId) {
+ if (disposed_)
+ return;
+
if (inst_id_ != instId)
return;
const std::string& instId,
const int pid,
const unsigned int surfaceId) {
+ if (disposed_)
+ return;
+
if (inst_id_ != instId)
return;
LOGW("removed %s", instId.c_str());
parent_->OnBufferRemoved(appId, instId, pid);
+ disposed_ = true;
}
void RemoteSurface::Impl::OnAppUpdated(const std::string &appId,
const std::string& instId,
const int pid,
const unsigned int surfaceId) {
+ if (disposed_)
+ return;
+
if (inst_id_ != instId)
return;