Fix double free issues
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"log"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"runtime"
|
||||
"sync"
|
||||
"time"
|
||||
"unsafe"
|
||||
@@ -45,9 +44,6 @@ func newDevice(handle *C.libusb_device_handle, desc *Descriptor) *Device {
|
||||
claimed: make(map[uint8]int, ifaces),
|
||||
}
|
||||
|
||||
// This doesn't seem to actually get called
|
||||
runtime.SetFinalizer(d, (*Device).Close)
|
||||
|
||||
return d
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user