am b5e05cff
: Merge "Fixing parcel leaks to avoid virtual memory leak"
* commit 'b5e05cffccc2ca1ce85ce9952b6c6845b46aa5c7': Fixing parcel leaks to avoid virtual memory leak
This commit is contained in:
@ -1188,6 +1188,7 @@ class ApplicationThreadProxy implements IApplicationThread {
|
|||||||
data.writeInt(level);
|
data.writeInt(level);
|
||||||
mRemote.transact(SCHEDULE_TRIM_MEMORY_TRANSACTION, data, null,
|
mRemote.transact(SCHEDULE_TRIM_MEMORY_TRANSACTION, data, null,
|
||||||
IBinder.FLAG_ONEWAY);
|
IBinder.FLAG_ONEWAY);
|
||||||
|
data.recycle();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void dumpMemInfo(FileDescriptor fd, Debug.MemoryInfo mem, boolean checkin,
|
public void dumpMemInfo(FileDescriptor fd, Debug.MemoryInfo mem, boolean checkin,
|
||||||
|
@ -1709,7 +1709,9 @@ public class RemoteViews implements Parcelable, Filter {
|
|||||||
Parcel p = Parcel.obtain();
|
Parcel p = Parcel.obtain();
|
||||||
writeToParcel(p, 0);
|
writeToParcel(p, 0);
|
||||||
p.setDataPosition(0);
|
p.setDataPosition(0);
|
||||||
return new RemoteViews(p);
|
RemoteViews rv = new RemoteViews(p);
|
||||||
|
p.recycle();
|
||||||
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPackage() {
|
public String getPackage() {
|
||||||
|
Reference in New Issue
Block a user