Browse Source

Free pointer with delete, since created with new

v0.7.4-release
Ryan 16 years ago
parent
commit
0d780fe6b8
  1. 4
      src/file.cc

4
src/file.cc

@ -45,8 +45,8 @@ do { \
TryCatch try_catch; \
(*callback)->Call(Context::GetCurrent()->Global(), argc, argv); \
if(try_catch.HasCaught()) \
node::FatalException(try_catch); \
free(callback); \
node::FatalException(try_catch); \
delete callback; \
} \
} while(0)

Loading…
Cancel
Save