Index: chrome_frame/plugin_url_request.cc |
diff --git a/chrome_frame/plugin_url_request.cc b/chrome_frame/plugin_url_request.cc |
index cfc798b712556074e4dffb45319ad62d52610b03..ed4412e34932c1af4941208d88dcd59ecf78ef86 100644 |
--- a/chrome_frame/plugin_url_request.cc |
+++ b/chrome_frame/plugin_url_request.cc |
@@ -44,7 +44,12 @@ bool PluginUrlRequest::Initialize(PluginUrlRequestDelegate* delegate, |
NOTREACHED(); |
} else { |
upload_stream->AddRef(); |
- upload_stream->Initialize(upload_data); |
+ if (!upload_stream->Initialize(upload_data)) { |
+ upload_stream->Release(); |
+ enable_frame_busting_ = enable_frame_busting; |
hashimoto
2013/11/11 04:27:53
Can't lines 49 & 61 moved to above, to avoid code
tzik
2013/11/11 05:33:52
Done.
|
+ return true; |
+ } |
+ |
upload_data_.Attach(upload_stream); |
is_chunked_upload_ = upload_data->is_chunked(); |
STATSTG stat; |