Skip to content

Commit

Permalink
close scope after dispatched is called
Browse files Browse the repository at this point in the history
  • Loading branch information
EricTheMagician committed Nov 25, 2014
1 parent d13669f commit 544cd52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuse4js.cc
Expand Up @@ -744,8 +744,7 @@ static void DispatchOp(uv_async_t* handle, int status)

case OP_MKDIR:
argv[argc++] = NanNew<Number>((double)f4js_cmd.u.create_mkdir.mode);
argv[argc++] = NanNew(f4js.GenericFunc);

argv[argc++] = NanNew(f4js.GenericFunc);
break;

case OP_READ:
Expand Down Expand Up @@ -785,6 +784,7 @@ static void DispatchOp(uv_async_t* handle, int status)
return;
}
handler->Call(NanGetCurrentContext()->Global(), argc, argv);
NanEscapeScope( NanUndefined());
}

// ---------------------------------------------------------------------------
Expand Down

0 comments on commit 544cd52

Please sign in to comment.