Handle realloc moving the buffer in _xdg_mime_(cache_)mime_type_subclass
I am very sorry, I didn't think through the case where realloc moves the buffer, and I didn't catch it during testing because realloc usually doesn't have to move the buffer.
Edited by Alex Henrie