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

Unified Diff: content/renderer/media/midi_dispatcher.h

Issue 323083002: [WebMIDI] Fix a WebMIDIPermissionRequest leak. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | content/renderer/media/midi_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/midi_dispatcher.h
diff --git a/content/renderer/media/midi_dispatcher.h b/content/renderer/media/midi_dispatcher.h
index 1e6c8e3937707b94ac2f6e6acae95d941e09460a..3b4cd4f2a720f976cdf6b7e9a87984ce5878fed1 100644
--- a/content/renderer/media/midi_dispatcher.h
+++ b/content/renderer/media/midi_dispatcher.h
@@ -44,7 +44,8 @@ class MidiDispatcher : public RenderViewObserver,
// Each WebMIDIPermissionRequest object is valid until
// cancelSysexPermissionRequest() is called with the object, or used to call
// WebMIDIPermissionRequest::setIsAllowed().
- IDMap<blink::WebMIDIPermissionRequest> requests_;
+ typedef IDMap<blink::WebMIDIPermissionRequest, IDMapOwnPointer> Requests;
+ Requests requests_;
DISALLOW_COPY_AND_ASSIGN(MidiDispatcher);
};
« no previous file with comments | « no previous file | content/renderer/media/midi_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698