mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
cf567afbd1
commit
ca881a5e30
@ -127,7 +127,11 @@ typedef struct {
|
|||||||
static void
|
static void
|
||||||
libmtp_Device_dealloc(libmtp_Device* self)
|
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;
|
self->device = NULL;
|
||||||
|
|
||||||
Py_XDECREF(self->ids); self->ids = NULL;
|
Py_XDECREF(self->ids); self->ids = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user