mirror of
https://github.com/LdDl/go-darknet.git
synced 2025-10-11 02:20:12 +08:00
free_network_ptr instead of free_network
This commit is contained in:
@@ -91,6 +91,8 @@ func main() {
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
n.Close()
|
||||
}
|
||||
|
||||
func imageToBytes(img image.Image) ([]byte, error) {
|
||||
|
@@ -58,7 +58,7 @@ func (n *YOLONetwork) Close() error {
|
||||
if n.cNet == nil {
|
||||
return errNetworkNotInit
|
||||
}
|
||||
C.free_network(*n.cNet)
|
||||
C.free_network_ptr(n.cNet)
|
||||
n.cNet = nil
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user