summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorTom Marlin <tomm@bsquare.com>2011-05-13 13:24:55 -0500
committerTom Marlin <tomm@bsquare.com>2011-06-03 11:29:17 -0500
commit49f1857dd8b64cdd57f28e965a1ff5fa0c2b0547 (patch)
tree49809136b2b8ba8cff5ef8e6bba2bd1556522def /trusty/coverage/coverage_test.cpp
parentfe6bfb1285f8c784e0700d03f0f3657ba126e6c4 (diff)
Fixed adb crash due to accessing freed memory
Reset peers to NULL after closing them down. This prevents other code from attempting to access that freed memory (which prevents crashes). Previously, it left pointers to freed memory and the "if (s->peer)" guards could not block the attempt to access that memory later. Resolves many crashes seen while taking repeated screenshots on WinXP. Change-Id: I32553f4d19f6ddc9b05b6ab4dc1e9efe69e5be4f
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions