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

Commit 3367b1e7 authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "Fix double-freeing of ScopedAResource"

parents ebad9254 8437d9f6
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;