13
0

push2: null handle on failed open

This commit is contained in:
Paul Davis 2016-09-27 13:46:36 -05:00
parent 81f2ed452b
commit 5e6249b7b1

View File

@ -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;
}