mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-28 13:00:45 +00:00
Undo efb39867c7
, memleaks were falsely reported by valgrind
This commit is contained in:
parent
549e9740ff
commit
afffe49977
@ -161,10 +161,6 @@ int ifup_strictness = IFUP_UP;
|
|||||||
extern kvm_t *kd;
|
extern kvm_t *kd;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BUILD_NCURSES
|
|
||||||
WINDOW* ncurses_screen;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int argc_copy;
|
int argc_copy;
|
||||||
char** argv_copy;
|
char** argv_copy;
|
||||||
|
|
||||||
@ -2383,7 +2379,6 @@ void clean_up(void *memtofree1, void* memtofree2)
|
|||||||
#ifdef BUILD_NCURSES
|
#ifdef BUILD_NCURSES
|
||||||
if(output_methods & TO_NCURSES) {
|
if(output_methods & TO_NCURSES) {
|
||||||
endwin();
|
endwin();
|
||||||
delwin(ncurses_screen);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
conftree_empty(currentconffile);
|
conftree_empty(currentconffile);
|
||||||
@ -3216,7 +3211,7 @@ char load_config_file(const char *f)
|
|||||||
#ifdef BUILD_NCURSES
|
#ifdef BUILD_NCURSES
|
||||||
CONF("out_to_ncurses") {
|
CONF("out_to_ncurses") {
|
||||||
if(string_to_bool(value)) {
|
if(string_to_bool(value)) {
|
||||||
ncurses_screen = initscr();
|
initscr();
|
||||||
start_color();
|
start_color();
|
||||||
output_methods |= TO_NCURSES;
|
output_methods |= TO_NCURSES;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user