/* destroy window and all the trackers associated with it */ func (win *Window) Destroy() { C.cvDestroyWindow(win.name_c) delete(allWindows, win.name) for _, bar_name := range win.trackbarName { C.GoOpenCV_DestroyTrackbar(bar_name, win.name_c) C.free(unsafe.Pointer(bar_name)) } C.free(unsafe.Pointer(win.name_c)) win.name_c = nil }
func destroyTrackbar(barName_, winName_ *C.char) { C.GoOpenCV_DestroyTrackbar(barName_, winName_) }