From: <mar...@us...> - 2012-08-01 12:09:31
|
Revision: 14075 http://gphoto.svn.sourceforge.net/gphoto/?rev=14075&view=rev Author: marcusmeissner Date: 2012-08-01 12:09:22 +0000 (Wed, 01 Aug 2012) Log Message: ----------- set gp-devs and gp_nrofdevs to 0 after freeing, otherwise we might reuse the freed ones Modified Paths: -------------- branches/libgphoto2-2_4/libgphoto2/libgphoto2_port/libusb1/libusb1.c Modified: branches/libgphoto2-2_4/libgphoto2/libgphoto2_port/libusb1/libusb1.c =================================================================== --- branches/libgphoto2-2_4/libgphoto2/libgphoto2_port/libusb1/libusb1.c 2012-07-29 08:29:40 UTC (rev 14074) +++ branches/libgphoto2-2_4/libgphoto2/libgphoto2_port/libusb1/libusb1.c 2012-08-01 12:09:22 UTC (rev 14075) @@ -276,6 +276,7 @@ port->pl = NULL; } if (gp_devs) libusb_free_device_list (gp_devs, 1); + gp_devs = NULL; gp_nrofdevs = 0; free (gp_descs); return (GP_OK); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |