projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5480cf5
)
Destroy the event object immediately after the reply is sent, fixes #102.
author
Cheng Zhao
<zcbenz@gmail.com>
Thu, 26 Sep 2013 03:28:53 +0000
(11:28 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Thu, 26 Sep 2013 03:28:53 +0000
(11:28 +0800)
browser/api/atom_api_event.cc
patch
|
blob
|
history
diff --git
a/browser/api/atom_api_event.cc
b/browser/api/atom_api_event.cc
index
0d69fe3
..
c2afd32
100644
(file)
--- a/
browser/api/atom_api_event.cc
+++ b/
browser/api/atom_api_event.cc
@@
-96,7
+96,8
@@
v8::Handle<v8::Value> Event::SendReply(const v8::Arguments& args) {
AtomViewHostMsg_Message_Sync::WriteReplyParams(event->message_, json);
event->sender_->Send(event->message_);
- event->message_ = NULL;
+ delete event;
+
return v8::Undefined();
}