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 (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 ( 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 }
//-----------------------------------------------------------------------------
// window: destroy
//-----------------------------------------------------------------------------
/* destroy window and all the trackers associated with it */
----------------------------------------------------------------------------- window : destroy ----------------------------------------------------------------------------- / * destroy window and all the trackers associated with it