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

Commit 2dc7d6a2 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

am: c052bd68

Change-Id: I207d3463f90e5ff5a78c976f98e301d0dd852ed0
parents 2efcefd3 c052bd68
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;