OSDN Git Service

DO NOT MERGE - Fix memory leak caused by mismatched linkToDeath() in WindowManagerService
authorJim Miller <jaggies@google.com>
Tue, 10 Dec 2013 01:38:05 +0000 (17:38 -0800)
committerJim Miller <jaggies@google.com>
Thu, 20 Mar 2014 02:22:38 +0000 (02:22 +0000)
commit46e631178e3420fee182e7d9d1ddfdbca9355bc1
tree1427bd173cae352a315e6008097bf37de2339a49
parenta413a4ae3280be6c45e84e85d7be3379a5cb51e4
DO NOT MERGE - Fix memory leak caused by mismatched linkToDeath() in WindowManagerService

This fixes a bug where an allocated DeathRecipient in WindowManagerService
was holding a reference to keyguard binder interface after a call to
linkToDeath() without a matchin unlinkToDeath().

It was causing the keyguard side of the binder interface to stick around,
which in tern prevented the keyguard side from releasing its references.

The solution is to ensure matching linkToDeath()/unlinkToDeath() calls.

Fixes bug 11982048

Change-Id: I6959816b819ba953512c53675162195cbf1e0653
services/java/com/android/server/wm/WindowManagerService.java