Merge branch 'fix-reload'

This commit is contained in:
Michael Stapelberg 2012-06-27 17:49:19 +02:00
commit 3fe3fdd2f9
1 changed files with 3 additions and 1 deletions

View File

@ -119,7 +119,9 @@ static void handle_key_press(xcb_key_press_event_t *event) {
} }
} }
struct CommandResult *command_output = parse_command(bind->command); char *command_copy = sstrdup(bind->command);
struct CommandResult *command_output = parse_command(command_copy);
free(command_copy);
if (command_output->needs_tree_render) if (command_output->needs_tree_render)
tree_render(); tree_render();