tFix theme cleanup - ledit - Text editor (WIP) | |
git clone git://lumidify.org/ledit.git (fast, but not encrypted) | |
git clone https://lumidify.org/git/ledit.git (encrypted, but very slow) | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit fbec4c07cb92b740d88ac37f69754f796fa1ebb9 | |
parent 673c0ad7488286a17873fa81826e5212ac520642 | |
Author: lumidify <[email protected]> | |
Date: Wed, 12 Jan 2022 22:25:01 +0100 | |
Fix theme cleanup | |
Diffstat: | |
M theme.c | 5 +++++ | |
1 file changed, 5 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/theme.c b/theme.c | |
t@@ -44,8 +44,13 @@ void | |
theme_destroy(ledit_common *common, ledit_theme *theme) { | |
XftColorFree(common->dpy, common->vis, common->cm, &theme->text_fg); | |
XftColorFree(common->dpy, common->vis, common->cm, &theme->text_bg); | |
+ XftColorFree(common->dpy, common->vis, common->cm, &theme->cursor_fg); | |
+ XftColorFree(common->dpy, common->vis, common->cm, &theme->cursor_bg); | |
+ XftColorFree(common->dpy, common->vis, common->cm, &theme->selection_f… | |
+ XftColorFree(common->dpy, common->vis, common->cm, &theme->selection_b… | |
XftColorFree(common->dpy, common->vis, common->cm, &theme->bar_fg); | |
XftColorFree(common->dpy, common->vis, common->cm, &theme->bar_bg); | |
+ XftColorFree(common->dpy, common->vis, common->cm, &theme->bar_cursor); | |
XftColorFree(common->dpy, common->vis, common->cm, &theme->scrollbar_f… | |
XftColorFree(common->dpy, common->vis, common->cm, &theme->scrollbar_b… | |
free(theme); |