mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 14:25:08 +01:00
...
This commit is contained in:
parent
cf567afbd1
commit
ca881a5e30
1 changed files with 5 additions and 1 deletions
|
|
@ -127,7 +127,11 @@ typedef struct {
|
|||
static void
|
||||
libmtp_Device_dealloc(libmtp_Device* self)
|
||||
{
|
||||
if (self->device != NULL) LIBMTP_Release_Device(self->device);
|
||||
if (self->device != NULL) {
|
||||
Py_BEGIN_ALLOW_THREADS;
|
||||
LIBMTP_Release_Device(self->device);
|
||||
Py_END_ALLOW_THREADS;
|
||||
}
|
||||
self->device = NULL;
|
||||
|
||||
Py_XDECREF(self->ids); self->ids = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue