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.
Showing with 5 additions and 1 deletion