diff --git a/libcef/browser/scheme_handler.cc b/libcef/browser/scheme_handler.cc index 207d3b5c6..8c9ec77e3 100644 --- a/libcef/browser/scheme_handler.cc +++ b/libcef/browser/scheme_handler.cc @@ -23,13 +23,18 @@ void InstallInternalProtectedHandlers( content::ProtocolHandlerMap* protocol_handlers, net::FtpTransactionFactory* ftp_transaction_factory) { protocol_handlers->insert( - std::make_pair(chrome::kDataScheme, new net::DataProtocolHandler)); + std::make_pair(chrome::kDataScheme, + linked_ptr( + new net::DataProtocolHandler))); protocol_handlers->insert( - std::make_pair(chrome::kFileScheme, new net::FileProtocolHandler)); + std::make_pair(chrome::kFileScheme, + linked_ptr( + new net::FileProtocolHandler))); #if !defined(DISABLE_FTP_SUPPORT) protocol_handlers->insert( std::make_pair(chrome::kFtpScheme, - new net::FtpProtocolHandler(ftp_transaction_factory))); + linked_ptr( + new net::FtpProtocolHandler(ftp_transaction_factory)))); #endif for (content::ProtocolHandlerMap::iterator it =