mirror of https://github.com/M66B/FairEmail.git
Prevent memory leak
This commit is contained in:
parent
8af0d6a051
commit
1f87da32ca
|
@ -2172,12 +2172,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
|
||||
// Stop watching operations
|
||||
Log.i(account.name + " stop watching operations");
|
||||
final TwoStateOwner _owner = cowner.value;
|
||||
getMainHandler().post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
if (cowner.value != null)
|
||||
cowner.value.destroy();
|
||||
_owner.destroy();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue