summaryrefslogtreecommitdiff
path: root/camlibs
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2021-02-14 19:57:28 +0100
committerMarcus Meissner <marcus@jet.franken.de>2021-02-14 19:57:28 +0100
commit9904b9abd47cecd7184cbb0f3642c33fe2e29529 (patch)
tree36c640a46cc9bea3192fd7c3218ea8a416bc6155 /camlibs
parent1a89478296e075f879030660ef4d5c230657e29c (diff)
downloadlibgphoto2-9904b9abd47cecd7184cbb0f3642c33fe2e29529.tar.gz
added missing propdescfree
Diffstat (limited to 'camlibs')
-rw-r--r--camlibs/ptp2/library.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c
index a7985d304..7dce22339 100644
--- a/camlibs/ptp2/library.c
+++ b/camlibs/ptp2/library.c
@@ -6703,16 +6703,19 @@ downloadnow:
ret = gp_file_set_data_and_size(file, (char*)ximage, oi.ObjectCompressedSize);
if (ret != GP_OK) {
gp_file_free (file);
+ ptp_free_devicepropdesc (&dpd);
return ret;
}
ret = gp_filesystem_append(camera->fs, path->folder, path->name, context);
if (ret != GP_OK) {
gp_file_free (file);
+ ptp_free_devicepropdesc (&dpd);
return ret;
}
ret = gp_filesystem_set_file_noop(camera->fs, path->folder, path->name, GP_FILE_TYPE_NORMAL, file, context);
if (ret != GP_OK) {
gp_file_free (file);
+ ptp_free_devicepropdesc (&dpd);
return ret;
}
*eventtype = GP_EVENT_FILE_ADDED;
@@ -6726,10 +6729,11 @@ downloadnow:
event.Nparam = 0;
ptp_add_event (params, &event);
}
+ ptp_free_devicepropdesc (&dpd);
return GP_OK;
}
-
sonyout:
+ ptp_free_devicepropdesc (&dpd);
/* If not, check for events and handle them */
if (time_since(event_start) > timeout-100) {
/* if there is less than 0.1 seconds, just check the