editor: Add missing free() and display_destroy() in main

Signed-off-by: Raúl Peñacoba <raul.mikaop.zelda@gmail.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
dev
Raúl Peñacoba 8 years ago committed by Quentin Glidic
parent bd8dc0a255
commit 745e647f18
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
  1. 3
      clients/editor.c

@ -1607,6 +1607,7 @@ main(int argc, char *argv[])
editor.display = display_create(&argc, argv);
if (editor.display == NULL) {
fprintf(stderr, "failed to create display: %m\n");
free(text_buffer);
return -1;
}
@ -1615,6 +1616,8 @@ main(int argc, char *argv[])
if (editor.text_input_manager == NULL) {
fprintf(stderr, "No text input manager global\n");
display_destroy(editor.display);
free(text_buffer);
return -1;
}

Loading…
Cancel
Save