From 5e6249b7b1bd2575f2dafc0fa66a0496239c65e9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 27 Sep 2016 13:46:36 -0500 Subject: [PATCH] push2: null handle on failed open --- libs/surfaces/push2/push2.cc | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2