Fix memory leaks in system_server
unlink DeathRecipients in a whole bunch of places to avoid memory leaks
This commit is contained in:
@@ -617,6 +617,9 @@ public class GpsLocationProvider extends ILocationProvider.Stub {
|
||||
synchronized(mListeners) {
|
||||
mListeners.remove(this);
|
||||
}
|
||||
if (mListener != null) {
|
||||
mListener.asBinder().unlinkToDeath(this, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user