From 183ef5e2f0ba6124efac98efba67757f1e8b2aa9 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Fri, 3 Oct 2025 18:22:58 -0400 Subject: Update IMG4 transform to use DecodeWithContext and synthesize a filename for the payload. --- transformcontext.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'transformcontext.cpp') diff --git a/transformcontext.cpp b/transformcontext.cpp index 186b24b9..5bddda80 100644 --- a/transformcontext.cpp +++ b/transformcontext.cpp @@ -50,7 +50,7 @@ Ref TransformContext::GetParent() const BNTransformContext* parent = BNTransformContextGetParent(m_object); if (!parent) return nullptr; - return new TransformContext(BNNewTransformContextReference(parent)); + return new TransformContext(parent); } @@ -81,7 +81,7 @@ Ref TransformContext::GetChild(const string& filename) const BNTransformContext* child = BNTransformContextGetChild(m_object, filename.c_str()); if (!child) return nullptr; - return new TransformContext(BNNewTransformContextReference(child)); + return new TransformContext(child); } @@ -90,7 +90,7 @@ Ref TransformContext::CreateChild(const DataBuffer& data, cons BNTransformContext* child = BNTransformContextCreateChild(m_object, data.GetBufferObject(), filename.c_str()); if (!child) return nullptr; - return new TransformContext(BNNewTransformContextReference(child)); + return new TransformContext(child); } -- cgit v1.3.1