diff options
author | nicm <nicm> | 2015-06-05 18:18:32 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-06-05 18:18:32 +0000 |
commit | 641a9cd3f591b0ace3ae9947ebe6ab889b641eed (patch) | |
tree | e11dd1d51c0d86d3191991cf5290dd00af61709b /window-choose.c | |
parent | 10e90ae01f53a67a1b7c3a2c498cefb73c6a23b4 (diff) |
Similarly, for sessions use a callback to free rather than checking
every loop.
Diffstat (limited to 'window-choose.c')
-rw-r--r-- | window-choose.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/window-choose.c b/window-choose.c index 2af56e23..c71fea3d 100644 --- a/window-choose.c +++ b/window-choose.c @@ -209,11 +209,11 @@ window_choose_data_create(int type, struct client *c, struct session *s) void window_choose_data_free(struct window_choose_data *wcd) { - wcd->start_client->references--; - wcd->start_session->references--; + server_client_unref(wcd->start_client); + session_unref(wcd->start_session); if (wcd->tree_session != NULL) - wcd->tree_session->references--; + session_unref(wcd->tree_session); free(wcd->ft_template); format_free(wcd->ft); |