aboutsummaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-03-16 02:11:10 +0100
committerFederico Angelilli <code@fedang.net>2024-03-16 02:11:10 +0100
commit15baf349fa6985262da39b70f2d496af104c478d (patch)
tree9d70590e9d0676268169828d7861a75f9ac18118 /src/state.c
parent9dcc07bdc6360b2ebbd618bb864024f62bf98918 (diff)
Fix some memory leaks and add valgrind support
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c2
1 files changed, 1 insertions, 1 deletions
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);
}