| Index: ppapi/thunk/ppb_url_loader_thunk.cc
|
| diff --git a/ppapi/thunk/ppb_url_loader_thunk.cc b/ppapi/thunk/ppb_url_loader_thunk.cc
|
| index 8fad53fc8fa0ddd56da22d7893158cea462603a4..7df78b9177cb549199528dc52a193284c439491a 100644
|
| --- a/ppapi/thunk/ppb_url_loader_thunk.cc
|
| +++ b/ppapi/thunk/ppb_url_loader_thunk.cc
|
| @@ -115,8 +115,9 @@ int32_t FinishStreamingToFile(PP_Resource loader,
|
| void Close(PP_Resource loader) {
|
| VLOG(4) << "PPB_URLLoader::Close()";
|
| EnterResource<PPB_URLLoader_API> enter(loader, true);
|
| - if (enter.succeeded())
|
| - enter.object()->Close();
|
| + if (enter.failed())
|
| + return;
|
| + enter.object()->Close();
|
| }
|
|
|
| const PPB_URLLoader_1_0 g_ppb_urlloader_thunk_1_0 = {
|
|
|