summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorRaúl Peñacoba <raul.mikaop.zelda@gmail.com>2017-03-29 18:16:46 +0200
committerQuentin Glidic <sardemff7+git@sardemff7.net>2017-03-31 01:36:06 +0200
commit745e647f18ef7b668731e0c7ebbbb0a15184b36c (patch)
tree639ae2c227af8ca19509feb42479ab6ba2127b9e /clients
parentbd8dc0a255d079e6f977f0dc5b0a0b7045c18676 (diff)
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>
Diffstat (limited to 'clients')
-rw-r--r--clients/editor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clients/editor.c b/clients/editor.c
index a0cc97af..b63c5628 100644
--- a/clients/editor.c
+++ b/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;
}