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

Unified Diff: content/test/net/url_request_slow_download_job.cc

Issue 10392111: Use ByteStream in downloads system to decouple source and sink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to LKGR. Created 8 years, 7 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
Index: content/test/net/url_request_slow_download_job.cc
diff --git a/content/test/net/url_request_slow_download_job.cc b/content/test/net/url_request_slow_download_job.cc
index 0af0441d4f8910643dc77771caeff837143a3038..d995e0ec42ae33173e0d1e46926e11478b35155e 100644
--- a/content/test/net/url_request_slow_download_job.cc
+++ b/content/test/net/url_request_slow_download_job.cc
@@ -186,6 +186,8 @@ void URLRequestSlowDownloadJob::CheckDoneStatus() {
DCHECK_EQ(BUFFER_FILLED, status);
buffer_ = NULL; // Release the reference.
SetStatus(net::URLRequestStatus());
+ // Release reference
+ buffer_ = NULL;
NotifyReadComplete(bytes_written);
} else {
MessageLoop::current()->PostDelayedTask(

Powered by Google App Engine
This is Rietveld 408576698