Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sync up/cleanup

  • Loading branch information...
commit 926345ec3bd08231764779cf61905ccd441b2551 1 parent 159dc05
@pquerna authored
Showing with 2 additions and 6 deletions.
  1. +0 −2  helloworld/helloworld.cc
  2. +2 −4 helloworld_eio/helloworld_eio.cc
View
2  helloworld/helloworld.cc
@@ -17,8 +17,6 @@
#include <v8.h>
#include <node.h>
-#include <node_events.h>
-#include <node_buffer.h>
using namespace node;
using namespace v8;
View
6 helloworld_eio/helloworld_eio.cc
@@ -17,8 +17,6 @@
#include <v8.h>
#include <node.h>
-#include <node_events.h>
-#include <node_buffer.h>
#include <unistd.h>
@@ -115,8 +113,9 @@ class HelloWorldEio: ObjectWrap
static int EIO_AfterHello(eio_req *req)
{
HandleScope scope;
- ev_unref(EV_DEFAULT_UC);
hello_baton_t *baton = static_cast<hello_baton_t *>(req->data);
+ ev_unref(EV_DEFAULT_UC);
+ baton->hw->Unref();
Local<Value> argv[1];
@@ -124,7 +123,6 @@ class HelloWorldEio: ObjectWrap
TryCatch try_catch;
- baton->hw->Unref();
baton->cb->Call(Context::GetCurrent()->Global(), 1, argv);
if (try_catch.HasCaught()) {
Please sign in to comment.
Something went wrong with that request. Please try again.