Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(994)

Unified Diff: ppapi/shared_impl/audio_impl.cc

Issue 6300011: Only close the sync socket if it is non-NULL. This fixes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/audio_impl.cc
===================================================================
--- ppapi/shared_impl/audio_impl.cc (revision 71899)
+++ ppapi/shared_impl/audio_impl.cc (working copy)
@@ -18,7 +18,8 @@
AudioImpl::~AudioImpl() {
// Closing the socket causes the thread to exit - wait for it.
- socket_->Close();
+ if (socket_.get())
+ socket_->Close();
if (audio_thread_.get()) {
audio_thread_->Join();
audio_thread_.reset();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698