summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorszym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 22:04:54 +0000
committerszym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 22:04:54 +0000
commit9ee069426f63db714177b58607e5b023991b3d6a (patch)
treec3b55f9dc7a7a5bb7075636ea37c0f5f25838d5c /net
parent7b1112c53b362fcde2828fc5039d52a175a889f2 (diff)
downloadchromium_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.cc2
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.