[Bug 54369] d2d1:d2d1 test crashes with use-after-free bug when using warn+heap