mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Free message memory
This commit is contained in:
parent
ae3e0c64ce
commit
4dc86f78b2
1 changed files with 5 additions and 0 deletions
|
@ -1301,10 +1301,12 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
|
||||
if (imessage.isExpunged()) {
|
||||
Log.i(Helper.TAG, folder.name + " expunged uid=" + uid);
|
||||
imessage.invalidateHeaders();
|
||||
return 0;
|
||||
}
|
||||
if (imessage.isSet(Flags.Flag.DELETED)) {
|
||||
Log.i(Helper.TAG, folder.name + " deleted uid=" + uid);
|
||||
imessage.invalidateHeaders();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1395,6 +1397,9 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
message.write(context, helper.getHtml());
|
||||
Log.i(Helper.TAG, folder.name + " added id=" + message.id + " uid=" + message.uid);
|
||||
|
||||
// Free memory
|
||||
imessage.invalidateHeaders();
|
||||
|
||||
int sequence = 0;
|
||||
for (EntityAttachment attachment : helper.getAttachments()) {
|
||||
sequence++;
|
||||
|
|
Loading…
Reference in a new issue