Merge pull request #236 from liskin/memleaks

fix a few memory leaks reported by valgrind
This commit is contained in:
yshui
2019-09-20 14:52:17 +00:00
committed by GitHub
3 changed files with 10 additions and 3 deletions

View File

@ -1232,6 +1232,7 @@ struct win *fill_win(session_t *ps, struct win *w) {
if (a->_class == XCB_WINDOW_CLASS_INPUT_ONLY) {
// No need to manage this window, but we still keep it on the window stack
w->managed = false;
free(a);
return w;
}