summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-11-12 08:45:21 -0800
committerJohn Stebbins <[email protected]>2017-11-12 08:45:21 -0800
commit143e1e22333cfcaa5371d7a671ba0b5e51e1499d (patch)
tree8f22aec55e0cf572753644eaf0426c05b36bf1e9 /gtk/src/hb-backend.c
parent6a39b850949b6dff124f1891d44bf5f3f031f46c (diff)
LinGui: don't free uninitialized things on exit
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index c2a2e556e..126146cd3 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -3207,9 +3207,12 @@ ghb_log_level_set(int level)
void
ghb_backend_close()
{
- hb_close(&h_live);
- hb_close(&h_queue);
- hb_close(&h_scan);
+ if (h_live != NULL)
+ hb_close(&h_live);
+ if (h_queue != NULL)
+ hb_close(&h_queue);
+ if (h_scan != NULL)
+ hb_close(&h_scan);
hb_global_close();
}