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

Commit c052bd68 authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Merge "Fix double-freeing of ScopedAResource" am: 3367b1e7

am: cd0f22bc

Change-Id: Iea2e8e35fa4e7144b67b1ef7a1d65e9a9147fad6
parents 5c0c0dd1 cd0f22bc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -163,7 +163,9 @@ class ScopedAResource {
    ScopedAResource& operator=(ScopedAResource&&) = delete;

    // move-constructing is okay
    ScopedAResource(ScopedAResource&&) = default;
    ScopedAResource(ScopedAResource&& other) : mT(std::move(other.mT)) {
      other.mT = DEFAULT;
    }

   private:
    T mT;