mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
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. */
|
||||
if(p){
|
||||
if(!p->initialize()){
|
||||
p = Ptr<RHO_HEST>((RHO_HEST*)NULL);
|
||||
p.release();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user