зеркало из https://github.com/mozilla/gecko-dev.git
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 |
||
---|---|---|
.. | ||
TestSyncRunnable.cpp | ||
buffered_stun_socket_unittest.cpp | ||
dummysocket.h | ||
gtest_ringbuffer_dumper.h | ||
gtest_utils.h | ||
ice_unittest.cpp | ||
moz.build | ||
mtransport_test_utils.h | ||
multi_tcp_socket_unittest.cpp | ||
nrappkit_unittest.cpp | ||
proxy_tunnel_socket_unittest.cpp | ||
rlogconnector_unittest.cpp | ||
runnable_utils_unittest.cpp | ||
sctp_unittest.cpp | ||
simpletokenbucket_unittest.cpp | ||
sockettransportservice_unittest.cpp | ||
stunserver.cpp | ||
stunserver.h | ||
test_nr_socket_ice_unittest.cpp | ||
test_nr_socket_unittest.cpp | ||
transport_unittests.cpp | ||
turn_unittest.cpp |