Permalink
Browse files

Sync up/cleanup

  • Loading branch information...
1 parent 159dc05 commit 926345ec3bd08231764779cf61905ccd441b2551 @pquerna committed Aug 21, 2010
Showing with 2 additions and 6 deletions.
  1. +0 −2 helloworld/helloworld.cc
  2. +2 −4 helloworld_eio/helloworld_eio.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;
@@ -17,8 +17,6 @@
#include <v8.h>
#include <node.h>
-#include <node_events.h>
-#include <node_buffer.h>
#include <unistd.h>
@@ -115,16 +113,16 @@ 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];
argv[0] = String::New("Hello World");
TryCatch try_catch;
- baton->hw->Unref();
baton->cb->Call(Context::GetCurrent()->Global(), 1, argv);
if (try_catch.HasCaught()) {

0 comments on commit 926345e

Please sign in to comment.