Merge pull request #2578 from RyanDwyer/fix-binding-reload

Fix management of bindings during reload
This commit is contained in:
emersion 2018-09-06 10:41:49 +02:00 committed by GitHub
commit bea9f9c63f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -329,7 +329,7 @@ void seat_execute_command(struct sway_seat *seat, struct sway_binding *binding)
binding->command, results->error);
}
if (binding->flags & BINDING_RELOAD) { // free the binding if we made a copy
if (binding_copy->flags & BINDING_RELOAD) {
free_sway_binding(binding_copy);
}
free_cmd_results(results);