diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 13:46:36 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:32 -0500 |
commit | 5e6249b7b1bd2575f2dafc0fa66a0496239c65e9 (patch) | |
tree | 17f707aa2ebd5fb807f41bbd9a4550bade5d13ba /libs/surfaces | |
parent | 81f2ed452b59cf6a45c7c32ab8b365a20f1a7e9a (diff) |
push2: null handle on failed open
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/push2/push2.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/surfaces/push2/push2.cc b/libs/surfaces/push2/push2.cc index 3fb5b6c372..6700687ac2 100644 --- a/libs/surfaces/push2/push2.cc +++ b/libs/surfaces/push2/push2.cc @@ -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; } |