From 4cc1b51a5e532f14ece5b11c66cd56091eb97a97 Mon Sep 17 00:00:00 2001 From: A404M Date: Wed, 28 Aug 2024 04:56:19 +0330 Subject: fixed memory leaks --- src/ui/tui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/tui.h') diff --git a/src/ui/tui.h b/src/ui/tui.h index 15b65d6..0ca71b3 100644 --- a/src/ui/tui.h +++ b/src/ui/tui.h @@ -47,7 +47,6 @@ typedef struct TERMINAL_CELL { typedef struct TUI { struct winsize size; struct termios original, raw, helper; - ON_CLICK_CALLBACK **on_click_callbacks; int init_cursor_x, init_cursor_y; TERMINAL_CELL *cells; size_t cells_length; @@ -142,5 +141,6 @@ extern BOX_METADATA *_tui_make_box_metadata(WIDGET *child, int width, extern void _tui_delete_box(WIDGET *box); extern WIDGET_ARRAY *tui_make_widget_array(int size, ...); +extern void _tui_delete_widget_array(WIDGET_ARRAY *widget_array); #endif -- cgit v1.2.3