mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-28 01:32:34 -04:00
Merge branch 'master' of https://github.com/gabrielrussell/calibre
This commit is contained in:
@@ -491,7 +491,10 @@ find_in_parent(Device *self, unsigned long storage_id, unsigned long parent_id,
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (f = files; f != NULL; f = f->next) LIBMTP_destroy_file_t(f);
|
||||
f = files;
|
||||
while (f != NULL) {
|
||||
files = f; f = f->next; LIBMTP_destroy_file_t(files);
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
@@ -590,7 +593,10 @@ Device_list_folder_by_name(Device *self, PyObject *args) {
|
||||
Py_DECREF(entry);
|
||||
if (!appended) { Py_CLEAR(ans); break; }
|
||||
}
|
||||
for (f = files; f != NULL; f = f->next) LIBMTP_destroy_file_t(f);
|
||||
f = files;
|
||||
while (f != NULL) {
|
||||
files = f; f = f->next; LIBMTP_destroy_file_t(files);
|
||||
}
|
||||
return ans;
|
||||
} // }}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user