On 04/12/2019 17:59, Jiří Činčura wrote: > Hi, > > do I have to call IResultSet::close and IStatement::free if it's immediatelly > followed by calling release method? >
close/free already calls release, so no, unless you had called addRef, you should not call both. But I have a preference to call close/free instead release. The former will really destroy the resource (but not necessary the memory allocated by the object - if it has more refs) and the later just decrements a reference (and destroy the resources and memory if it has no more references). Adriano Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel