diff --git a/file_previews.c b/file_previews.c index f6eea29..9ad9ae5 100644 --- a/file_previews.c +++ b/file_previews.c @@ -108,14 +108,14 @@ void ueberzug_init(){ ueberzug = popen("ueberzug layer -s --no-cache ", "w"); #endif } +void ueberzug_close(){ + images_clear(); + pclose(ueberzug); +} +#endif void file_preview_init(){ cookie_type = magic_open(MAGIC_MIME_TYPE); cookie_description = magic_open(MAGIC_NONE); magic_load(cookie_type, NULL); magic_load(cookie_description, NULL); } -void ueberzug_close(){ - images_clear(); - pclose(ueberzug); -} -#endif