Skip to content

Commit ed32c02

Browse files
robertgoss-workmartinweismann
authored andcommitted
Acquire class on initialization
1 parent 92e6abf commit ed32c02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/buildbindingpython.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ func writePythonClass(component ComponentDefinition, class ComponentDefinitionCl
741741
w.Writeln(" raise E%sException(ErrorCodes.INVALIDPARAM)", NameSpace)
742742
w.Writeln(" self._handle = handle")
743743
w.Writeln(" self._wrapper = wrapper")
744+
w.Writeln(" self._wrapper.%s(self)", component.Global.AcquireMethod)
744745
w.Writeln(" ")
745746
w.Writeln(" def __del__(self):")
746747
w.Writeln(" self._wrapper.%s(self)", component.Global.ReleaseMethod)

0 commit comments

Comments
 (0)