From: Hiltjo Posthuma Date: Thu, 11 Jun 2020 16:45:33 +0000 (+0200) Subject: Fix memory leaks in drw X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=9b38fda6feda68f95754d5b8932b1a69471df960;p=dmenu.git Fix memory leaks in drw Synced from dwm. Patch by Alex Flierl , thanks. --- diff --git a/drw.c b/drw.c index 8fd1ca4..4cdbcbe 100644 --- a/drw.c +++ b/drw.c @@ -95,6 +95,7 @@ drw_free(Drw *drw) { XFreePixmap(drw->dpy, drw->drawable); XFreeGC(drw->dpy, drw->gc); + drw_fontset_free(drw->fonts); free(drw); }