diff --git a/twpp/customdata.hpp b/twpp/customdata.hpp index cac74aae..fb3e004c 100644 --- a/twpp/customdata.hpp +++ b/twpp/customdata.hpp @@ -51,7 +51,7 @@ public: /// Locks and returns pointer to custom data memory. template Data lock() const noexcept{ - return Data(m_handle); + return Data(m_handle.get()); } /// The size of contained memory block.