ipcRenderer: fix crash with multiple listeners to sync message
This commit is contained in:
parent
636570306a
commit
45b3bd3a22
2 changed files with 19 additions and 1 deletions
|
@ -45,7 +45,10 @@ bool Event::SendReply(const base::string16& json) {
|
|||
return false;
|
||||
|
||||
AtomViewHostMsg_Message_Sync::WriteReplyParams(message_, json);
|
||||
return sender_->Send(message_);
|
||||
bool success = sender_->Send(message_);
|
||||
message_ = NULL;
|
||||
sender_ = NULL;
|
||||
return success;
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue