diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-16 02:11:10 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-16 02:11:10 +0100 |
| commit | 15baf349fa6985262da39b70f2d496af104c478d (patch) | |
| tree | 9d70590e9d0676268169828d7861a75f9ac18118 /src/state.c | |
| parent | 9dcc07bdc6360b2ebbd618bb864024f62bf98918 (diff) | |
Fix some memory leaks and add valgrind support
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 2 |
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); } |
