| Index: content/browser/gpu/gpu_internals_ui.cc
|
| diff --git a/content/browser/gpu/gpu_internals_ui.cc b/content/browser/gpu/gpu_internals_ui.cc
|
| index 079c5aae8830a0eed330e6f3cfc075c11f649ae3..adbe274b6bac798856393acf099ee46b045ac61d 100644
|
| --- a/content/browser/gpu/gpu_internals_ui.cc
|
| +++ b/content/browser/gpu/gpu_internals_ui.cc
|
| @@ -221,9 +221,9 @@ base::DictionaryValue* GpuInfoAsDictionaryValue() {
|
| info->Set("basic_info", basic_info);
|
|
|
| #if defined(OS_WIN)
|
| - base::Value* dx_info = gpu_info.dx_diagnostics.children.size() ?
|
| - DxDiagNodeToList(gpu_info.dx_diagnostics) :
|
| - base::Value::CreateNullValue();
|
| + scoped_ptr<base::Value> dx_info = base::Value::CreateNullValue();
|
| + if (gpu_info.dx_diagnostics.children.size())
|
| + dx_info.reset(DxDiagNodeToList(gpu_info.dx_diagnostics));
|
| info->Set("diagnostics", dx_info);
|
| #endif
|
|
|
|
|