[grid PoC] free rgba after loading visual #1348

This commit is contained in:
nick black 2021-10-18 19:31:44 -04:00
parent 51043fc959
commit fa3c872ae6
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -43,6 +43,7 @@ draw_grid(struct ncplane* stdn){
memset(row, 0xff, maxbx * sizeof(*rgba));
}
struct ncvisual* ncv = ncvisual_from_rgba(rgba, maxby, maxbx * sizeof(*rgba), maxbx);
free(rgba);
return ncv;
}