diff --git a/loader/include/Geode/loader/Hook.hpp b/loader/include/Geode/loader/Hook.hpp index cadaf68b..6d931365 100644 --- a/loader/include/Geode/loader/Hook.hpp +++ b/loader/include/Geode/loader/Hook.hpp @@ -144,6 +144,7 @@ namespace geode { }; class GEODE_DLL Patch final { + // Change to private in 2.0.0 protected: Mod* m_owner; void* m_address; @@ -158,6 +159,7 @@ namespace geode { // m_owner, m_address, m_original and // m_patch. Patch(); + ~Patch(); // no copying Patch(Patch const&) = delete; diff --git a/loader/src/loader/Patch.cpp b/loader/src/loader/Patch.cpp index d1e5842e..fc7e774f 100644 --- a/loader/src/loader/Patch.cpp +++ b/loader/src/loader/Patch.cpp @@ -33,6 +33,8 @@ Mod* Patch::getOwner() const { return m_owner; } +Patch::~Patch() {} + template <> struct json::Serialize { static json::Value to_json(ByteVector const& bytes) {