Fix a memory leak where EventLogger is created two times in the event tracer.
R=tommi@webrtc.org Review-Url: https://codereview.webrtc.org/2179903004 Cr-Commit-Position: refs/heads/master@{#13536}
This commit is contained in:
parent
5f5504f218
commit
bb19a60832
@ -239,7 +239,6 @@ void SetupInternalTracer() {
|
||||
RTC_CHECK(rtc::AtomicOps::CompareAndSwapPtr(
|
||||
&g_event_logger, static_cast<EventLogger*>(nullptr),
|
||||
new EventLogger()) == nullptr);
|
||||
g_event_logger = new EventLogger();
|
||||
webrtc::SetupEventTracer(InternalGetCategoryEnabled, InternalAddTraceEvent);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user