Corrected initialization of smart pointer.
This commit is contained in:
parent
52e67c1a29
commit
fcdbacdbb0
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user