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

Commit 8391efaf authored by Chia-I Wu's avatar Chia-I Wu Committed by Android (Google) Code Review
Browse files

Merge "vulkan: avoid double-free in InitSharedPtr" into nyc-dev

parents cd582bb1 c684560d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -102,7 +102,6 @@ std::shared_ptr<T> InitSharedPtr(Host host, T* obj) {
            obj, NativeBaseDeleter<T>(),
            VulkanAllocator<T>(*GetAllocator(host), AllocScope<Host>::kScope));
    } catch (std::bad_alloc&) {
        obj->common.decRef(&obj->common);
        return nullptr;
    }
}