diff options
Diffstat (limited to 'net')
-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( |