Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e29951e2 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Fix potential double destroy of AssetManager am: 0a8a1e9d am: 303d3874

Change-Id: I3ddb9a9b1b67341b76ead480662356944d9146e6
parents 0d39ff52 303d3874
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -1157,8 +1157,11 @@ public final class AssetManager implements AutoCloseable {
            }
            }
        }
        }


        synchronized (this) {
            if (mObject != 0) {
            if (mObject != 0) {
                nativeDestroy(mObject);
                nativeDestroy(mObject);
                mObject = 0;
            }
        }
        }
    }
    }