You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the caller still owns the logger after the base::SetLogger call. So if the caller new'd the logger, it's expected that the caller also calls delete on the logger.
The text was updated successfully, but these errors were encountered:
It seems like the comments on the
base::SetLogger
function is incorrect. It saysMeanwhile, the unit tests use a logger that is put on the stack. As far as I can tell from logging.cc,
base::SetLogger
setsLogDestination
'slogger_
member variable and it is not deleted there.It seems like the caller still owns the logger after the
base::SetLogger
call. So if the callernew
'd the logger, it's expected that the caller also callsdelete
on the logger.The text was updated successfully, but these errors were encountered: