mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
[dwm][PATCH] Fix memory leaks in drw
The function drw_fontset_free in drw.c was never called.
This commit is contained in:
parent
8c4eaccf16
commit
2643894570
5
drw.c
5
drw.c
@ -115,6 +115,11 @@ drw_free(Drw *drw)
|
|||||||
{
|
{
|
||||||
XFreePixmap(drw->dpy, drw->drawable);
|
XFreePixmap(drw->dpy, drw->drawable);
|
||||||
XFreeGC(drw->dpy, drw->gc);
|
XFreeGC(drw->dpy, drw->gc);
|
||||||
|
#if PANGO_PATCH
|
||||||
|
drw_font_free(drw->font);
|
||||||
|
#else
|
||||||
|
drw_fontset_free(drw->fonts);
|
||||||
|
#endif // PANGO_PATCH
|
||||||
free(drw);
|
free(drw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user