From eefbdc82d4f8c67f3e89782e6253da262edcf9c5 Mon Sep 17 00:00:00 2001 From: bigbear Date: Thu, 8 Feb 2024 02:44:45 +0100 Subject: FIX Cleanup about credit box --- modules/devices/printers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/devices/printers.c') diff --git a/modules/devices/printers.c b/modules/devices/printers.c index 25a6edd7..e849e1dc 100644 --- a/modules/devices/printers.c +++ b/modules/devices/printers.c @@ -67,7 +67,7 @@ init_cups(void) if (!g_module_symbol(cups, "cupsGetDests", (gpointer) & cups_dests_get) || !g_module_symbol(cups, "cupsFreeDests", (gpointer) & cups_dests_free)) { - g_module_close(cups); + if(cups) g_module_close(cups); cups_init = FALSE; } } -- cgit v1.2.3