Commit 2caeeb27 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*fixed memory leak in text_setto as reported by Jonathan Wilkes

parent dd198f08
......@@ -2354,6 +2354,7 @@ void text_setto(t_text *x, t_glist *glist, char *buf, int bufsize, int pos)
//just retext it
t_rtext *yr = glist_findrtext(glist, x);
if (yr) rtext_retext(yr);
binbuf_free(b);
}
}
else /* normally, just destroy the old one and make a new one. */
......@@ -2389,6 +2390,7 @@ void text_setto(t_text *x, t_glist *glist, char *buf, int bufsize, int pos)
//fprintf(stderr,"just retext it\n");
t_rtext *yr = glist_findrtext(glist, x);
if (yr) rtext_retext(yr);
binbuf_free(b);
}
}
/* if we made a new "pd" or changed a window name,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment