[hackers] [dmenu] Fix memory leaks in drw || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Thu, 11 Jun 2020 18:48:00 +0200 (CEST)

commit 9b38fda6feda68f95754d5b8932b1a69471df960
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Thu Jun 11 18:45:33 2020 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Thu Jun 11 18:45:33 2020 +0200

    Fix memory leaks in drw
    
    Synced from dwm.
    Patch by Alex Flierl <shad0w73_AT_freenet.de>, thanks.

diff --git a/drw.c b/drw.c
index 8fd1ca4..4cdbcbe 100644
--- a/drw.c
+++ b/drw.c
_AT_@ -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);
 }
 
Received on Thu Jun 11 2020 - 18:48:00 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 11 2020 - 18:48:38 CEST