tFix theme cleanup - ledit - Text editor (WIP)
HTML git clone git://lumidify.org/ledit.git (fast, but not encrypted)
HTML git clone https://lumidify.org/git/ledit.git (encrypted, but very slow)
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit fbec4c07cb92b740d88ac37f69754f796fa1ebb9
DIR parent 673c0ad7488286a17873fa81826e5212ac520642
HTML Author: lumidify <nobody@lumidify.org>
Date: Wed, 12 Jan 2022 22:25:01 +0100
Fix theme cleanup
Diffstat:
M theme.c | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
DIR 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_fg);
+ XftColorFree(common->dpy, common->vis, common->cm, &theme->selection_bg);
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_fg);
XftColorFree(common->dpy, common->vis, common->cm, &theme->scrollbar_bg);
free(theme);