commit | 49f1857dd8b64cdd57f28e965a1ff5fa0c2b0547 | [log] [tgz] |
---|---|---|
author | Tom Marlin <tomm@bsquare.com> | Fri May 13 13:24:55 2011 -0500 |
committer | Tom Marlin <tomm@bsquare.com> | Fri Jun 03 11:29:17 2011 -0500 |
tree | 49809136b2b8ba8cff5ef8e6bba2bd1556522def | |
parent | fe6bfb1285f8c784e0700d03f0f3657ba126e6c4 [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