From 15baf349fa6985262da39b70f2d496af104c478d Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sat, 16 Mar 2024 02:11:10 +0100 Subject: Fix some memory leaks and add valgrind support --- src/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index d0e2e12..880c8ff 100644 --- a/src/state.c +++ b/src/state.c @@ -126,7 +126,7 @@ void state_request_animation(State *state) void state_destroy(State *state) { - g_list_free_full(state->btns, (void *)button_destroy); + g_list_free_full(state->btns, (GDestroyNotify)button_destroy); g_free(state); } -- cgit v1.2.3