desktop-shell: Add missing weston_config_destroy() for desktop.config
desktop.config sections could be freed after it's use. This will avoid memory leak. Signed-off-by: Anurup M <anurup.mokkil@gmail.com>
This commit is contained in:
@@ -1526,6 +1526,7 @@ int main(int argc, char *argv[])
|
|||||||
if (desktop.display == NULL) {
|
if (desktop.display == NULL) {
|
||||||
fprintf(stderr, "failed to create display: %s\n",
|
fprintf(stderr, "failed to create display: %s\n",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
weston_config_destroy(desktop.config);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1554,6 +1555,7 @@ int main(int argc, char *argv[])
|
|||||||
unlock_dialog_destroy(desktop.unlock_dialog);
|
unlock_dialog_destroy(desktop.unlock_dialog);
|
||||||
weston_desktop_shell_destroy(desktop.shell);
|
weston_desktop_shell_destroy(desktop.shell);
|
||||||
display_destroy(desktop.display);
|
display_destroy(desktop.display);
|
||||||
|
weston_config_destroy(desktop.config);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user