Commit 7014b9f5 authored by wez@chromium.org's avatar wez@chromium.org

Fix a weeny leak in the Host plugin.

BUG=
TEST=

Review URL: http://codereview.chromium.org/7617001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96418 0039d316-1c4b-4281-b951-d872f2087c98
parent e476fcea
......@@ -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";
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment