summaryrefslogtreecommitdiff
path: root/src/camera/GPhoto.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-08-13 15:00:06 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-08-13 15:00:06 +0200
commit3c403a4863899d5caf0da09a42925855689ac5cd (patch)
tree8abe62db599c3b0e0642e12dc5b5c8b184498dab /src/camera/GPhoto.vala
parent6e9bda752d89f97b0c66e69d9e57376f2947df0a (diff)
parent3c829c50a8f705402bdc759946d49ae7caebd003 (diff)
Updated version 0.26.3 from 'upstream/0.26.3'
with Debian dir 214e96c00e302f0b57a90d9660ad38cb63e82670
Diffstat (limited to 'src/camera/GPhoto.vala')
-rw-r--r--src/camera/GPhoto.vala4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/camera/GPhoto.vala b/src/camera/GPhoto.vala
index 5acc4a3..5919080 100644
--- a/src/camera/GPhoto.vala
+++ b/src/camera/GPhoto.vala
@@ -205,18 +205,14 @@ namespace GPhoto {
GPhoto.CameraFile camera_file;
GPhoto.Result res = GPhoto.CameraFile.create_from_fd(out camera_file, fd);
if (res != Result.OK) {
- Posix.close(fd);
throw new GPhotoError.LIBRARY("[%d] Error allocating camera file: %s", (int) res, res.as_string());
}
res = camera.get_file(folder, filename, GPhoto.CameraFileType.NORMAL, camera_file, context);
if (res != Result.OK) {
- Posix.close(fd);
throw new GPhotoError.LIBRARY("[%d] Error retrieving file object for %s/%s: %s",
(int) res, folder, filename, res.as_string());
}
-
- Posix.close(fd);
}
public PhotoMetadata? load_metadata(Context context, Camera camera, string folder, string filename)