Index: third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp |
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp |
index 1f21d1af9b37795fdd0917687643a220f0b1a16e..5cad114545104c6d0209d88e7c3e82dbe5956412 100644 |
--- a/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp |
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp |
@@ -213,7 +213,7 @@ |
if (timestamp == 0.0) |
timestamp = now(getExecutionContext()); |
- DOMUint8Array* array = DOMUint8Array::create(unsignedData.size()); |
+ RefPtr<DOMUint8Array> array = DOMUint8Array::create(unsignedData.size()); |
DOMUint8Array::ValueType* const arrayData = array->data(); |
const uint32_t arrayLength = array->length(); |
@@ -226,7 +226,7 @@ |
arrayData[i] = unsignedData[i] & 0xff; |
} |
- send(array, timestamp, exceptionState); |
+ send(array.get(), timestamp, exceptionState); |
} |
void MIDIOutput::send(DOMUint8Array* data, ExceptionState& exceptionState) |