Index: Source/modules/webmidi/MIDIController.cpp |
diff --git a/Source/modules/webmidi/MIDIController.cpp b/Source/modules/webmidi/MIDIController.cpp |
index 6d3ad053b4efcd8e54e34c016108a9b3cd17082c..55cc3996ea63a69c1e082512a75064b7080a9a51 100644 |
--- a/Source/modules/webmidi/MIDIController.cpp |
+++ b/Source/modules/webmidi/MIDIController.cpp |
@@ -41,17 +41,17 @@ const char* MIDIController::supplementName() |
return "MIDIController"; |
} |
-MIDIController::MIDIController(MIDIClient* client) |
+MIDIController::MIDIController(PassOwnPtr<MIDIClient> client) |
: m_client(client) |
{ |
- ASSERT(client); |
+ ASSERT(m_client); |
gyuyoung-inactive
2014/04/03 06:30:11
I missed that client becomes a null after passing
|
} |
MIDIController::~MIDIController() |
{ |
} |
-PassOwnPtr<MIDIController> MIDIController::create(MIDIClient* client) |
+PassOwnPtr<MIDIController> MIDIController::create(PassOwnPtr<MIDIClient> client) |
{ |
return adoptPtr(new MIDIController(client)); |
} |
@@ -66,7 +66,7 @@ void MIDIController::cancelSysexPermissionRequest(MIDIAccess* access) |
m_client->cancelSysexPermissionRequest(access); |
} |
-void provideMIDITo(Page& page, MIDIClient* client) |
+void provideMIDITo(Page& page, PassOwnPtr<MIDIClient> client) |
{ |
MIDIController::provideTo(page, MIDIController::supplementName(), MIDIController::create(client)); |
} |