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/dwm.c | |
| parent | 9dcc07bdc6360b2ebbd618bb864024f62bf98918 (diff) | |
Fix some memory leaks and add valgrind support
Diffstat (limited to 'src/dwm.c')
| -rw-r--r-- | src/dwm.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -335,6 +335,7 @@ static gboolean socket_callback(GSocket *socket, GIOCondition condition, gpointe //log_debug("Received dwm ipc response: %s", reply); ipc_handle(data, msg_type, reply, reply_size); + g_free(reply); return G_SOURCE_CONTINUE; } @@ -378,6 +379,7 @@ DwmIpc *dwm_create(State *state, const char *socket) g_source_attach(dwm->source, NULL); log_info("Attached dwm ipc source [socket=%s]", socket); + g_object_unref(addr); return dwm; } @@ -433,6 +435,10 @@ void dwm_destroy(DwmIpc *dwm) g_source_destroy(dwm->source); g_source_unref(dwm->source); g_object_unref(dwm->socket); + + if (dwm->hidden_title) + button_destroy(dwm->title); + g_free(dwm); } |
