Re: [Firebird-devel] Reference counting and dumb pointers

2015-11-17 Thread alex
17.11.2015 18:11, Dimitry Sibiryakov пишет: > Hello, All. > > A typical piece of code: > >> // do not assign cryptPlugin directly before key init complete >> IDbCryptPlugin* p = cryptControl.plugin(); >> keyHolderPlugins.init(p); >> cryp

[Firebird-devel] Reference counting and dumb pointers

2015-11-17 Thread Dimitry Sibiryakov
Hello, All. A typical piece of code: > // do not assign cryptPlugin directly before key init complete > IDbCryptPlugin* p = cryptControl.plugin(); > keyHolderPlugins.init(p); > cryptPlugin = p; > cryptPlugin->addRef();