| Index: remoting/host/plugin/host_script_object.cc
|
| diff --git a/remoting/host/plugin/host_script_object.cc b/remoting/host/plugin/host_script_object.cc
|
| index 460458dccc1089567b9370b021c6b679baab5d32..2ba2c468dda1327ce00b3802c8d244df4d71afd5 100644
|
| --- a/remoting/host/plugin/host_script_object.cc
|
| +++ b/remoting/host/plugin/host_script_object.cc
|
| @@ -562,9 +562,10 @@ void HostNPScriptObject::LogDebugInfo(const std::string& message) {
|
| }
|
|
|
| if (log_debug_info_func_) {
|
| - NPVariant* arg = new NPVariant();
|
| - STRINGZ_TO_NPVARIANT(message.c_str(), *arg);
|
| - bool is_good = InvokeAndIgnoreResult(log_debug_info_func_, arg, 1);
|
| + NPVariant log_message;
|
| + STRINGZ_TO_NPVARIANT(message.c_str(), log_message);
|
| + bool is_good = InvokeAndIgnoreResult(log_debug_info_func_,
|
| + &log_message, 1);
|
| LOG_IF(ERROR, !is_good) << "LogDebugInfo failed";
|
| }
|
| }
|
|
|