diff options
Diffstat (limited to 'examples/unityplugin/unity_plugin_apis.cc')
-rw-r--r-- | examples/unityplugin/unity_plugin_apis.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/unityplugin/unity_plugin_apis.cc b/examples/unityplugin/unity_plugin_apis.cc index 34c28d926a..672330faec 100644 --- a/examples/unityplugin/unity_plugin_apis.cc +++ b/examples/unityplugin/unity_plugin_apis.cc @@ -27,7 +27,7 @@ int CreatePeerConnection(const char** turn_urls, const char* credential, bool mandatory_receive_video) { g_peer_connection_map[g_peer_connection_id] = - new rtc::RefCountedObject<SimplePeerConnection>(); + rtc::make_ref_counted<SimplePeerConnection>(); if (!g_peer_connection_map[g_peer_connection_id]->InitializePeerConnection( turn_urls, no_of_urls, username, credential, mandatory_receive_video)) |