diff options
author | szym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 22:04:54 +0000 |
---|---|---|
committer | szym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 22:04:54 +0000 |
commit | 9ee069426f63db714177b58607e5b023991b3d6a (patch) | |
tree | c3b55f9dc7a7a5bb7075636ea37c0f5f25838d5c /net | |
parent | 7b1112c53b362fcde2828fc5039d52a175a889f2 (diff) | |
download | chromium_src-9ee069426f63db714177b58607e5b023991b3d6a.zip chromium_src-9ee069426f63db714177b58607e5b023991b3d6a.tar.gz chromium_src-9ee069426f63db714177b58607e5b023991b3d6a.tar.bz2 |
[net/dns] Fix leak in FilePathWatcherWrapper::Cancel
TBR=timurrrr@chromium.org
TEST=./net_unittests
Review URL: https://chromiumcodereview.appspot.com/9703123
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127263 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/dns/file_path_watcher_wrapper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns/file_path_watcher_wrapper.cc b/net/dns/file_path_watcher_wrapper.cc index 909c03c..75879db 100644 --- a/net/dns/file_path_watcher_wrapper.cc +++ b/net/dns/file_path_watcher_wrapper.cc @@ -49,7 +49,7 @@ void FilePathWatcherWrapper::Cancel() { DCHECK(CalledOnValidThread()); if (delegate_) { delegate_->Cancel(); - delegate_.release(); + delegate_ = NULL; } watcher_.reset(NULL); // All state is gone so it's okay to detach from thread. |