diff options
author | B. Bogart <bbogart@users.sourceforge.net> | 2010-08-06 21:48:29 +0000 |
---|---|---|
committer | B. Bogart <bbogart@users.sourceforge.net> | 2010-08-06 21:48:29 +0000 |
commit | 65a9d9d96c2f12a3001c7a1c39611ddc0954419c (patch) | |
tree | 855d640380a4329d95e1b91afb3665cd8e0c5c96 /gphoto | |
parent | eafc343071b994cc5cb4704b8243db5a88567f16 (diff) |
Added call to gp_file_free() to fix the file descriptor leak when
capturing many images.
svn path=/trunk/externals/bbogart/; revision=13762
Diffstat (limited to 'gphoto')
-rw-r--r-- | gphoto/gphoto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gphoto/gphoto.c b/gphoto/gphoto.c index 0a574a4..b17140c 100644 --- a/gphoto/gphoto.c +++ b/gphoto/gphoto.c @@ -387,6 +387,7 @@ void *captureImage(void *threadArgs) { if (gp_ret != 0) {sys_lock(); error("gphoto: ERROR: %s\n", gp_result_as_string(gp_ret)); sys_unlock(); gp_camera_unref(((gphoto_gimme_struct *)threadArgs)->gphoto->camera); return(NULL);} close(fd); // close file descriptor + gp_file_free(camerafile); // free camerafile (needed to avoid fd leaks!) // Send bang out 2nd outlet when operation is done. sys_lock(); |