Browse Source

* Fix minor memory leak in cucul_set_canvas_boundaries().

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
5810f430d7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      cucul/canvas.c

+ 2
- 0
cucul/canvas.c View File

@@ -337,6 +337,8 @@ int cucul_set_canvas_boundaries(cucul_canvas_t *cv, int x, int y,
free(cv->allchars[f]);
free(cv->allattr[f]);
}
free(cv->allchars);
free(cv->allattr);

memcpy(cv, new, sizeof(cucul_canvas_t));
free(new);


Loading…
Cancel
Save