summaryrefslogtreecommitdiff
path: root/transform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'transform.cpp')
-rw-r--r--transform.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/transform.cpp b/transform.cpp
index 735fb1b9..c2e51e80 100644
--- a/transform.cpp
+++ b/transform.cpp
@@ -114,8 +114,7 @@ bool Transform::DecodeWithContextCallback(void* ctxt, BNTransformContext* contex
paramMap[params[i].name] = DataBuffer(BNDuplicateDataBuffer(params[i].value));
CallbackRef<Transform> xform(ctxt);
- Ref<TransformContext> contextRef = new TransformContext(BNNewTransformContextReference(context));
- return xform->DecodeWithContext(contextRef, paramMap);
+ return xform->DecodeWithContext(new TransformContext(context), paramMap);
}