I think addRef should not be called using this->addRef. Only external
owners can add refs.
One more place where this->addRef exists it is /src/remote/remote.h#L1008.

In all other places, addRef is called on private objects that the object owns.

On 2 December 2015 at 19:19, Dimitry Sibiryakov <[email protected]> wrote:
>    Hello, All.
>
>    YHelper calls this->addRef() in constructor. But if the rest of the 
> constructor throw
> anything, destructor is called automatically and die on assertion
> fb_assert(refCounter.value() == 0).
>    Is it a design flaw?
>
> --
>    WBR, SD.
>
> ------------------------------------------------------------------------------
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> Firebird-Devel mailing list, web interface at 
> https://lists.sourceforge.net/lists/listinfo/firebird-devel

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to