push2: null handle on failed open
This commit is contained in:
parent
81f2ed452b
commit
5e6249b7b1
@ -241,6 +241,7 @@ Push2::open ()
|
||||
error << _("Cannot construct Canvas for display") << endmsg;
|
||||
libusb_release_interface (handle, 0x00);
|
||||
libusb_close (handle);
|
||||
handle = 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user