Permalink
Browse files

binding: close all async handles

  • Loading branch information...
1 parent 8939d16 commit aa4d62aed53cf4d128b9415efad14de35323b28d @indutny committed Sep 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/audio/binding.cc
View
2 src/audio/binding.cc
@@ -64,6 +64,8 @@ Audio::Audio(double rate, size_t frame_size, ssize_t latency)
Audio::~Audio() {
uv_close(reinterpret_cast<uv_handle_t*>(&in_async_), NULL);
+ uv_close(reinterpret_cast<uv_handle_t*>(&inready_async_), NULL);
+ uv_close(reinterpret_cast<uv_handle_t*>(&outready_async_), NULL);
delete unit_;
}

0 comments on commit aa4d62a

Please sign in to comment.