Browse Source

Free pointer with delete, since created with new

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

2
src/file.cc

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

Loading…
Cancel
Save