This commit is contained in:
Nikita Ivanov 2022-06-02 05:20:42 +05:00
parent 03f4da1b46
commit 98770e2842
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

5
ctpv.c
View File

@ -31,13 +31,14 @@ static struct {
char *server_id_s;
} ctpv = { .mode = MODE_PREVIEW };
static void cleanup(void) {
static void cleanup(void)
{
cleanup_previews();
if (magic != NULL)
magic_close(magic);
}
static int init_magic()
static int init_magic(void)
{
ERRCHK_RET(!(magic = magic_open(MAGIC_MIME_TYPE)), FUNCFAILED("magic_open"),
magic_error(magic));