diff --git a/cucul/cucul.c b/cucul/cucul.c index 2c0312c..67ab114 100644 --- a/cucul/cucul.c +++ b/cucul/cucul.c @@ -171,8 +171,6 @@ void cucul_free_canvas(cucul_canvas_t *cv) { _cucul_end_dither(); - free(cv->scratch_line); - free(cv->chars); free(cv->attr); @@ -273,9 +271,5 @@ void _cucul_set_canvas_size(cucul_canvas_t *cv, unsigned int width, cv->chars = realloc(cv->chars, new_size * sizeof(uint32_t)); cv->attr = realloc(cv->attr, new_size * sizeof(uint32_t)); } - - /* Recompute the scratch line and the empty line */ - if(width != old_width) - cv->scratch_line = realloc(cv->scratch_line, width + 1); } diff --git a/cucul/cucul_internals.h b/cucul/cucul_internals.h index ab74a12..1cf74d8 100644 --- a/cucul/cucul_internals.h +++ b/cucul/cucul_internals.h @@ -32,7 +32,6 @@ struct cucul_canvas uint32_t *chars; uint32_t *attr; - char *scratch_line; uint16_t fgcolor; uint16_t bgcolor;