fixed double free/use after free bug

This commit is contained in:
Jarcode
2018-01-17 19:12:31 -08:00
parent d7e27cea7b
commit 319b8d67de

View File

@@ -1114,8 +1114,8 @@ struct renderer* rd_new(const char** paths, const char* entry, const char* force
for (size_t t = 0; t < xwinstates_sz; ++t) { for (size_t t = 0; t < xwinstates_sz; ++t) {
xwin_addstate(r, xwinstates[t]); xwin_addstate(r, xwinstates[t]);
free(xwinstates);
} }
free(xwinstates);
return r; return r;
} }