Index: Source/WebCore/bindings/v8/custom/V8HistoryCustom.cpp |
=================================================================== |
--- Source/WebCore/bindings/v8/custom/V8HistoryCustom.cpp (revision 141135) |
+++ Source/WebCore/bindings/v8/custom/V8HistoryCustom.cpp (working copy) |
@@ -51,7 +51,7 @@ |
if (!value.IsEmpty() && !history->stateChanged()) |
return value; |
- SerializedScriptValue* serialized = history->state(); |
+ RefPtr<SerializedScriptValue> serialized = history->state(); |
value = serialized ? serialized->deserialize(0, info.GetIsolate()) : v8::Handle<v8::Value>(v8Null(info.GetIsolate())); |
info.Holder()->SetHiddenValue(V8HiddenPropertyName::state(), value); |