From 55fb6e0a508c327a780e0529697ba61f6051f81e61f645e3caa83db923379001 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 1 Aug 2012 12:32:02 +0000 Subject: [PATCH] - fixed one missed gp_devs = NULL which led to more crashes OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=73 --- lg-24-branch.patch | 8 ++++++++ libgphoto2.changes | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/lg-24-branch.patch b/lg-24-branch.patch index 9976909..08d3fec 100644 --- a/lg-24-branch.patch +++ b/lg-24-branch.patch @@ -114,3 +114,11 @@ diff -ru ./libgphoto2_port/libusb1/libusb1.c /home/marcus/projects/libgphoto2-2_ return (GP_OK); } +@@ -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); + } diff --git a/libgphoto2.changes b/libgphoto2.changes index 22c7a0d..cdba67f 100644 --- a/libgphoto2.changes +++ b/libgphoto2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 1 12:31:43 UTC 2012 - meissner@suse.com + +- fixed one missed gp_devs = NULL which led to more crashes + ------------------------------------------------------------------- Thu Jul 19 18:40:18 UTC 2012 - meissner@suse.com