aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-08-23 09:00:20 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-08-23 09:00:20 +0200
commit2803a8153b27d1d0096207573a70d0d5e6877156 (patch)
tree1da16e863942a38060ace6c940d5891180d22f79
parentf1ab0e2d8a46d921e7e45ba7e246455e7b3c4b0c (diff)
downloadnncmpp-2803a8153b27d1d0096207573a70d0d5e6877156.tar.gz
nncmpp-2803a8153b27d1d0096207573a70d0d5e6877156.tar.xz
nncmpp-2803a8153b27d1d0096207573a70d0d5e6877156.zip
X11: clean up after Xft on exit
-rw-r--r--nncmpp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/nncmpp.c b/nncmpp.c
index 2ceaa12..b8df828 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -861,6 +861,10 @@ spectrum_free (struct spectrum *s)
fftw_free (s->windowed);
free (s->data);
free (s->window);
+#if 0
+ // We don't particularly want to discard wisdom.
+ fftwf_cleanup ();
+#endif
free (s->rendered);
free (s->spectrum);
@@ -5751,6 +5755,9 @@ x11_destroy (void)
poller_fd_reset (&g.x11_event);
XCloseDisplay (g.dpy);
+
+ // Xft hooks called in XCloseDisplay() don't clean up everything.
+ FcFini ();
}
static struct ui x11_ui =