fix memory leak
This commit is contained in:
parent
15255944b6
commit
2ba119f395
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ NetLog::NetLog(net::URLRequestContext* context)
|
||||||
<< "for net logging";
|
<< "for net logging";
|
||||||
} else {
|
} else {
|
||||||
std::string json;
|
std::string json;
|
||||||
base::JSONWriter::Write(GetConstants(), &json);
|
scoped_ptr<base::Value> constants(GetConstants());
|
||||||
|
base::JSONWriter::Write(constants.get(), &json);
|
||||||
fprintf(log_file_.get(), "{\"constants\": %s, \n", json.c_str());
|
fprintf(log_file_.get(), "{\"constants\": %s, \n", json.c_str());
|
||||||
fprintf(log_file_.get(), "\"events\": [\n");
|
fprintf(log_file_.get(), "\"events\": [\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue