Release memory storage.
This commit is contained in:
parent
2bb3caf08d
commit
d36375064f
1 changed files with 4 additions and 0 deletions
|
|
@ -69,6 +69,10 @@ func (this *HaarCascade) DetectObjects(image *IplImage) []*Rect {
|
|||
rect := (*Rect)((*_Ctype_CvRect)(unsafe.Pointer(C.cvGetSeqElem(seq, C.int(i)))))
|
||||
faces = append(faces, rect)
|
||||
}
|
||||
|
||||
storage_c := (*C.CvMemStorage)(storage)
|
||||
C.cvReleaseMemStorage(&storage_c)
|
||||
|
||||
return faces
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue