From cca844b42a6303282e7536c8834b74ff56140cbf Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 9 Aug 2023 19:14:52 -0300 Subject: more pointerizing of buffers, fix memory leaks --- ted.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ted.h') diff --git a/ted.h b/ted.h index b1108bc..a632d46 100644 --- a/ted.h +++ b/ted.h @@ -428,11 +428,6 @@ size_t buffer_contents_utf8(TextBuffer *buffer, char *out); char *buffer_contents_utf8_alloc(TextBuffer *buffer); /// perform a series of checks to make sure the buffer doesn't have any invalid values void buffer_check_valid(TextBuffer *buffer); -/// free all resources used by the buffer -/// -/// Once a buffer is freed, you can call buffer_create on it again. -/// Does not free the pointer `buffer` (buffer might not have even been allocated with malloc) -void buffer_free(TextBuffer *buffer); /// clear contents, undo history, etc. of a buffer void buffer_clear(TextBuffer *buffer); /// returns the length of the `line_number`th line (0-indexed), -- cgit v1.2.3