From 53a43cb38838bd65512b3b8902cc8a3ecfaaca56 Mon Sep 17 00:00:00 2001 From: NRK Date: Sun, 2 Jul 2023 20:15:53 +0600 Subject: introduce img_free() this removes some repetitive code. --- nsxiv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'nsxiv.h') diff --git a/nsxiv.h b/nsxiv.h index e68b215..949fc4b 100644 --- a/nsxiv.h +++ b/nsxiv.h @@ -217,6 +217,7 @@ struct img { void img_init(img_t*, win_t*); bool img_load(img_t*, const fileinfo_t*); +CLEANUP void img_free(Imlib_Image, bool); CLEANUP void img_close(img_t*, bool); void img_render(img_t*); bool img_fit_win(img_t*, scalemode_t); -- cgit v1.2.3-54-g00ecf