aboutsummaryrefslogtreecommitdiff
path: root/modules/devices
diff options
context:
space:
mode:
authorbigbear <ns@bigbear.dk>2024-02-08 02:44:45 +0100
committerbigbear <ns@bigbear.dk>2024-02-08 19:52:53 +0100
commiteefbdc82d4f8c67f3e89782e6253da262edcf9c5 (patch)
tree00a0d118d89e50ab3b34e5a731d48d2859499e30 /modules/devices
parent122ec6ae462b5608f61ecc5734b0f0b20eb898c4 (diff)
FIX Cleanup about credit box
Diffstat (limited to 'modules/devices')
-rw-r--r--modules/devices/printers.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}