mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
server: fix socket path memory leak
The socket path allocated with strdup() in server_init() was not being freed in server_fini(). Remove const qualifier and add proper cleanup. Rebased from origin/master.
This commit is contained in:
parent
e01eff4810
commit
b1134d3ee3
2 changed files with 172 additions and 165 deletions
|
|
@ -31,7 +31,7 @@ struct sway_session_lock {
|
|||
struct sway_server {
|
||||
struct wl_display *wl_display;
|
||||
struct wl_event_loop *wl_event_loop;
|
||||
const char *socket;
|
||||
char *socket;
|
||||
|
||||
struct wlr_backend *backend;
|
||||
struct wlr_session *session;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue