Commit fcdbacdb authored by Olexa Bilaniuk's avatar Olexa Bilaniuk

Corrected initialization of smart pointer.

parent 52e67c1a
...@@ -462,7 +462,7 @@ Ptr<RHO_HEST> rhoInit(void){ ...@@ -462,7 +462,7 @@ Ptr<RHO_HEST> rhoInit(void){
/* Initialize it. */ /* Initialize it. */
if(p){ if(p){
if(!p->initialize()){ if(!p->initialize()){
p = Ptr<RHO_HEST>((RHO_HEST*)NULL); p.release();
} }
} }
......
Markdown is supported
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