mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a couple of compiler warnings
This commit is contained in:
parent
547df82cff
commit
ddf4e7ca68
@ -346,7 +346,7 @@ icu_Collator_collation_order(icu_Collator *self, PyObject *a_) {
|
||||
order = ucol_next(iter, &status);
|
||||
len = ucol_getOffset(iter);
|
||||
end:
|
||||
if (iter != NULL) ucol_closeElements(iter); iter = NULL;
|
||||
if (iter != NULL) { ucol_closeElements(iter); iter = NULL; }
|
||||
if (a != NULL) free(a);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
return Py_BuildValue("ii", order, len);
|
||||
|
@ -340,7 +340,7 @@ static void free_matcher(Matcher *self) {
|
||||
}
|
||||
nullfree(self->items); nullfree(self->item_lengths);
|
||||
nullfree(self->level1); nullfree(self->level2); nullfree(self->level3);
|
||||
if (self->collator != NULL) ucol_close(self->collator); self->collator = NULL;
|
||||
if (self->collator != NULL) { ucol_close(self->collator); self->collator = NULL; }
|
||||
}
|
||||
static void
|
||||
Matcher_dealloc(Matcher* self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user