1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-11 10:38:12 +00:00

bye bye again possible mem leak

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@654 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2006-05-22 03:29:19 +00:00
parent 1f7486f699
commit e2c2f22c37

View File

@ -5797,6 +5797,10 @@ void reload_config(void)
{
//lock_all_threads();
threads_runnable++;
if (info.cpu_usage) {
free(info.cpu_usage);
info.cpu_usage = NULL;
}
#if defined(XMMS) || defined(BMP) || defined(AUDACIOUS) || defined(INFOPIPE)
if (info.xmms.thread) {
if (destroy_xmms_thread()!=0)
@ -5840,6 +5844,10 @@ void clean_up(void)
{
//lock_all_threads();
threads_runnable++;
if (info.cpu_usage) {
free(info.cpu_usage);
info.cpu_usage = NULL;
}
#ifdef X11
#ifdef XDBE
if (use_xdbe) {