diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-25 22:39:38 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-25 22:39:38 +0000 |
commit | ec9f22cd4e7151ab3c3eb6ba47885bd75d342ae3 (patch) | |
tree | 8f79fd0b1be4b4bc4e54ce32de07b00604fb2140 /net/base | |
parent | 7f2855f8e27cca78479481d80a06618568c8d10a (diff) | |
download | chromium_src-ec9f22cd4e7151ab3c3eb6ba47885bd75d342ae3.zip chromium_src-ec9f22cd4e7151ab3c3eb6ba47885bd75d342ae3.tar.gz chromium_src-ec9f22cd4e7151ab3c3eb6ba47885bd75d342ae3.tar.bz2 |
Fix a memory leak in the net directory lister.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6001 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/directory_lister.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/base/directory_lister.cc b/net/base/directory_lister.cc index a5d893a..00a67fab 100644 --- a/net/base/directory_lister.cc +++ b/net/base/directory_lister.cc @@ -98,14 +98,12 @@ void DirectoryLister::ThreadMain() { if (e->count > 0) { message_loop_->PostTask(FROM_HERE, e); - e = NULL; + e = new DirectoryDataEvent(this); } // Notify done - e = new DirectoryDataEvent(this); - message_loop_->PostTask(FROM_HERE, e); - Release(); + message_loop_->PostTask(FROM_HERE, e); } void DirectoryLister::OnReceivedData( |