mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
fix a few memleaks
This commit is contained in:
parent
867a842b3f
commit
775d591a68
@ -7416,7 +7416,6 @@ static void clean_up(void)
|
||||
XFlush(display);
|
||||
}
|
||||
|
||||
XFreeGC(display, window.gc);
|
||||
free_fonts();
|
||||
}
|
||||
|
||||
@ -7650,6 +7649,8 @@ static void set_default_configurations(void)
|
||||
#endif /* X11 */
|
||||
|
||||
for (i = 0; i < MAX_TEMPLATES; i++) {
|
||||
if (template[i])
|
||||
free(template[i]);
|
||||
template[i] = strdup("");
|
||||
}
|
||||
|
||||
@ -8907,6 +8908,7 @@ int main(int argc, char **argv)
|
||||
|
||||
g_signal_pending = 0;
|
||||
memset(&info, 0, sizeof(info));
|
||||
memset(template, 0, sizeof(template));
|
||||
clear_net_stats();
|
||||
|
||||
#ifdef TCP_PORT_MONITOR
|
||||
|
Loading…
Reference in New Issue
Block a user