JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fixed memory leak in xsettitle().
[st.git] / st.c
diff --git a/st.c b/st.c
index 6756f76..9cdd969 100644 (file)
--- 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
@@ -3606,8 +3607,8 @@ run(void) {
                        ttyread();
                        if(blinktimeout) {
                                blinkset = tattrset(ATTR_BLINK);
-                               if(!blinkset && term.mode & ATTR_BLINK)
-                                       term.mode &= ~(MODE_BLINK);
+                               if(!blinkset)
+                                       MODBIT(term.mode, 0, MODE_BLINK);
                        }
                }