From: Alexander Sedov <alex0player@gmail.com>
Date: Mon, 29 Jul 2013 07:50:44 +0000 (+0400)
Subject: Fixed memory leak in xsettitle().
X-Git-Url: https://git.owens.tech/112-editable-focus.html/112-editable-focus.html/git?a=commitdiff_plain;h=22eeda56b7c1532773343811dee1f76c0999d01c;p=st.git

Fixed memory leak in xsettitle().
---

diff --git a/st.c b/st.c
index b63d865..9cdd969 100644
--- a/st.c
+++ b/st.c
@@ -3258,6 +3258,7 @@ xsettitle(char *p) {
 	Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle,
 			&prop);
 	XSetWMName(xw.dpy, xw.win, &prop);
+	XFree(prop.value);
 }
 
 void