Skip to content

Commit fdfc1b2

Browse files
committed
frameworks/base: Fix to release references to previous live wallpaper
The service connection to the previous live wallpaper is unbound when a new wallpaper is effective. Although the service connection is unbound it is not disconnected and its reference to wallpaper's service and engine is still effective. This adds up to the total JNI references and causes dalvik (hosting system_server) to abort. Fix is to release the references in clearWallpaperComponentLocked. Change-Id: Idd2bab83a56d2e6c6dd7ab9be08d5e14887aa384
1 parent 3b10aea commit fdfc1b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/java/com/android/server/WallpaperManagerService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,8 @@ void clearWallpaperComponentLocked() {
587587
mIWindowManager.removeWindowToken(mWallpaperConnection.mToken);
588588
} catch (RemoteException e) {
589589
}
590+
mWallpaperConnection.mService = null;
591+
mWallpaperConnection.mEngine = null;
590592
mWallpaperConnection = null;
591593
}
592594
}

0 commit comments

Comments
 (0)