aboutsummaryrefslogtreecommitdiff
path: root/sway/main.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-05-05 18:01:44 -0700
committerDrew DeVault <sir@cmpwn.com>2016-05-05 18:01:44 -0700
commit6abdc0755945a982638ce2341d2ed1f96a6c5e4e (patch)
treec8c80580235a3c999fd109cee45961333d253fc6 /sway/main.c
parentdb651a41f3db0d3c97504e388650a5f3fd8fa955 (diff)
parentc9d634414af3883ace919317b3c38b512a5136b1 (diff)
Merge pull request #638 from neosilky/memleak
sway/main.c: simplify free'ing by switching to the helper method
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/main.c b/sway/main.c
index 8f11ecb9..51b12d20 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -224,9 +224,7 @@ int main(int argc, char **argv) {
wlc_run();
}
- if (input_devices) {
- free(input_devices);
- }
+ list_free(input_devices);
ipc_terminate();