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.
This commit is contained in:
Ben Noordhuis
2013-08-27 14:47:46 +02:00
parent 3a87b31bfa
commit 556b890ad9

View File

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