Index: tools/gn/functions.cc |
diff --git a/tools/gn/functions.cc b/tools/gn/functions.cc |
index c68eda53adcae947ee252754d8c5c4a2b416e917..0d60d688adc47980b20123e58cc6d8d85656e20d 100644 |
--- a/tools/gn/functions.cc |
+++ b/tools/gn/functions.cc |
@@ -251,7 +251,7 @@ Value RunConfig(const FunctionCallNode* function, |
*err = Err(function, "Can't define a config in this context."); |
return Value(); |
} |
- collector->push_back(new scoped_ptr<Item>(config.PassAs<Item>())); |
+ collector->push_back(config.release()); |
return Value(); |
} |