diff options
Diffstat (limited to 'modules/devices')
-rw-r--r-- | modules/devices/printers.c | 2 |
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; } } |