[hackers] [st] Fixed memory leak in xsettitle(). || Alexander Sedov

From: <git_AT_suckless.org>
Date: Mon, 05 Aug 2013 11:54:13 +0200

commit 22eeda56b7c1532773343811dee1f76c0999d01c
Author: Alexander Sedov <alex0player_AT_gmail.com>
Date: Mon Jul 29 11:50:44 2013 +0400

    Fixed memory leak in xsettitle().

diff --git a/st.c b/st.c
index b63d865..9cdd969 100644
--- a/st.c
+++ b/st.c
_AT_@ -3258,6 +3258,7 @@ xsettitle(char *p) {
         Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle,
                         &prop);
         XSetWMName(xw.dpy, xw.win, &prop);
+ XFree(prop.value);
 }
 
 void
Received on Mon Aug 05 2013 - 11:54:13 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 05 2013 - 12:00:23 CEST