Commit fa550210 authored by François Grisez's avatar François Grisez
Browse files

Fix memory leak in the generated C++ wrapper

clone() methods sytematically took a reference on the freshly
created object whereas these had their reference counter set to one
already.

This commit prevents the wrapper generator take an extra reference
by passing false as 'takeRef' argument of cPtrToSharedPtr().

This commit also introduce a new property for abstractapi.Method
objects, which tells whether the method returns an allocated object.
parent fc4bc693
1 merge request!179Fix/fix several memory leaks
Showing with 5 additions and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment