mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
6c8c1d1d24
commit
a486120c90
@ -45,16 +45,16 @@ wpd_init(PyObject *self, PyObject *args) {
|
|||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
wpd_uninit(PyObject *self, PyObject *args) {
|
wpd_uninit(PyObject *self, PyObject *args) {
|
||||||
if (_com_initialized) {
|
|
||||||
CoUninitialize();
|
|
||||||
_com_initialized = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (portable_device_manager != NULL) {
|
if (portable_device_manager != NULL) {
|
||||||
portable_device_manager->Release();
|
portable_device_manager->Release();
|
||||||
portable_device_manager = NULL;
|
portable_device_manager = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_com_initialized) {
|
||||||
|
CoUninitialize();
|
||||||
|
_com_initialized = 0;
|
||||||
|
}
|
||||||
|
|
||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user