mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
0375f07548
Before this patch, TransportTest::Reset would assign to p1_ and p2_ without releasing their resources first. Since they're not RAII types, they would just leak. This fixes the leak by a) explicitly initializing them to nullptr in the constructor and b) deleting them if they previously had a non-null value. MozReview-Commit-ID: 20U6sqRWg06 --HG-- extra : rebase_source : e304c7636a9b31df53d3ff0e8d7e0042f7e82494