Browse Source

src: call uv_loop_delete() on exit in debug mode

Should make tracing with valgrind a little easier on the eye and
possibly help expose libuv handle lifecycle issues.
v0.11.7-release
Ben Noordhuis 11 years ago
parent
commit
556b890ad9
  1. 1
      src/node.cc

1
src/node.cc

@ -3181,6 +3181,7 @@ int Start(int argc, char *argv[]) {
#ifndef NDEBUG #ifndef NDEBUG
// Clean up. Not strictly necessary. // Clean up. Not strictly necessary.
V8::Dispose(); V8::Dispose();
uv_loop_delete(uv_default_loop());
#endif // NDEBUG #endif // NDEBUG
// Clean up the copy: // Clean up the copy:

Loading…
Cancel
Save