mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-06 12:00:23 +01:00
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>
This commit is contained in:
parent
bd8dc0a255
commit
745e647f18
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue