Skip to content
Commit 87b47c48 authored by Abhishek Shanthkumar's avatar Abhishek Shanthkumar Committed by Chromium LUCI CQ
Browse files

Triage and fix most dangling pointers hit by blink_platform_unittests

In most files, the fix is just a reordering of member declarations.
In a few files, the member variables were initialized at declaration
time, which had to be changed to explicit initialization in the ctor.

The remaining dangling pointers under the blink_platform_unittests will
be addressed in a separate CL since the fixes are non-trivial.

Validated the fixes by running blink_platform_unittests with dangle
detection enabled.

Bug: 40212619
Change-Id: I1f21b062da4971fcd2ecae879c3d1d1431732acc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5420069


Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: default avatarMiguel Casas-Sanchez <mcasas@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Auto-Submit: Abhishek Shanthkumar <abhishek.shanthkumar@microsoft.com>
Reviewed-by: default avatarJohn Rummell <jrummell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1282146}
parent 22c52334
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment