SHA256
1
0
forked from pool/libgphoto2

the device list is freed by the libusb_exit above

OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=75
This commit is contained in:
Marcus Meissner 2012-08-01 15:01:18 +00:00 committed by Git OBS Bridge
parent d5715675af
commit 9458e59200

View File

@ -114,10 +114,10 @@ diff -ru ./libgphoto2_port/libusb1/libusb1.c /home/marcus/projects/libgphoto2-2_
return (GP_OK); return (GP_OK);
} }
@@ -276,6 +276,7 @@ @@ -276,6 +276,6 @@
port->pl = NULL; port->pl = NULL;
} }
if (gp_devs) libusb_free_device_list (gp_devs, 1); - if (gp_devs) libusb_free_device_list (gp_devs, 1);
+ gp_devs = NULL; gp_nrofdevs = 0; + gp_devs = NULL; gp_nrofdevs = 0;
free (gp_descs); free (gp_descs);
return (GP_OK); return (GP_OK);