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

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

Merge "Fix double-freeing of ScopedAResource"

am: 3367b1e7

Change-Id: I028ab29eb2183b0f8b59b7a608399945a64fd639
parents 5964d5a4 3367b1e7
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;