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

Commit b5f68547 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix potential double destroy of AssetManager"

parents b3c008e5 cfa2284c
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1157,8 +1157,11 @@ public final class AssetManager implements AutoCloseable {
            }
        }

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