Prevent memory leak

pull/206/head
M66B 4 years ago
parent 8af0d6a051
commit 1f87da32ca

@ -2172,12 +2172,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
// Stop watching operations // Stop watching operations
Log.i(account.name + " stop watching operations"); Log.i(account.name + " stop watching operations");
final TwoStateOwner _owner = cowner.value;
getMainHandler().post(new Runnable() { getMainHandler().post(new Runnable() {
@Override @Override
public void run() { public void run() {
try { try {
if (cowner.value != null) _owner.destroy();
cowner.value.destroy();
} catch (Throwable ex) { } catch (Throwable ex) {
Log.e(ex); Log.e(ex);
} }

Loading…
Cancel
Save