Index: Source/bindings/templates/attributes.cpp |
diff --git a/Source/bindings/templates/attributes.cpp b/Source/bindings/templates/attributes.cpp |
index cfefd0e9f880cb89b80b9db9ebe1b5a61b61ee46..b82e2fe8129793c21901e96095ad155dd4dbb51e 100644 |
--- a/Source/bindings/templates/attributes.cpp |
+++ b/Source/bindings/templates/attributes.cpp |
@@ -232,7 +232,7 @@ v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info |
{% endif %} |
{% if attribute.put_forwards %} |
{{cpp_class}}* proxyImp = {{v8_class}}::toNative(info.Holder()); |
- {{attribute.idl_type}}* imp = WTF::getPtr(proxyImp->{{attribute.name}}()); |
+ RefPtr<{{attribute.idl_type}}> imp = WTF::getPtr(proxyImp->{{attribute.name}}()); |
if (!imp) |
return; |
{% elif not attribute.is_static %} |