Skip to content

Implement working %delobject SWIG directives #848

@flyingsilverfin

Description

@flyingsilverfin

Problem to Solve

Java and CSharp's %delobject directive in SWIG doesn't work as expected, see: swig/swig#3333

This means that we must manually call .Released() on our objects as they are passed over the native library boundary in order to avoid memory management problems. However, the discussion in SWIG above outlines a solution to apply

Proposed Solution

Remove the explicit .Released() calls on objects as they are passed into methods marked as %delobject - for example, user_delete

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions