| Index: tools/gn/target_generator.cc
|
| diff --git a/tools/gn/target_generator.cc b/tools/gn/target_generator.cc
|
| index 975ff722414da3881ae401c05028fce1db92fbc5..db7befcab947fb6e3758c6f9b9e97e8ba93c8db8 100644
|
| --- a/tools/gn/target_generator.cc
|
| +++ b/tools/gn/target_generator.cc
|
| @@ -126,7 +126,7 @@ void TargetGenerator::GenerateTarget(Scope* scope,
|
| *err = Err(function_call, "Can't define a target in this context.");
|
| return;
|
| }
|
| - collector->push_back(new scoped_ptr<Item>(target.PassAs<Item>()));
|
| + collector->push_back(target.release());
|
| }
|
|
|
| const BuildSettings* TargetGenerator::GetBuildSettings() const {
|
|
|