Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2346)

Unified Diff: Source/modules/webmidi/MIDIAccess.h

Issue 552143003: MIDIAccess::create(): add missing adoptRefCountedGarbageCollected(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIAccess.h
diff --git a/Source/modules/webmidi/MIDIAccess.h b/Source/modules/webmidi/MIDIAccess.h
index 132cc3d64647e16fddcf56be232ae138366a0318..4b3f12df1a2eba4953bd5b03da32b0b4326a77a3 100644
--- a/Source/modules/webmidi/MIDIAccess.h
+++ b/Source/modules/webmidi/MIDIAccess.h
@@ -56,7 +56,7 @@ class MIDIAccess FINAL : public RefCountedGarbageCollectedWillBeGarbageCollected
public:
static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabled, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext* executionContext)
{
- MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, executionContext);
+ MIDIAccess* access = adoptRefCountedGarbageCollectedWillBeNoop(new MIDIAccess(accessor, sysexEnabled, ports, executionContext));
access->suspendIfNeeded();
return access;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698