mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-26 16:48:28 +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:
parent
1f7486f699
commit
e2c2f22c37
@ -5797,6 +5797,10 @@ void reload_config(void)
|
|||||||
{
|
{
|
||||||
//lock_all_threads();
|
//lock_all_threads();
|
||||||
threads_runnable++;
|
threads_runnable++;
|
||||||
|
if (info.cpu_usage) {
|
||||||
|
free(info.cpu_usage);
|
||||||
|
info.cpu_usage = NULL;
|
||||||
|
}
|
||||||
#if defined(XMMS) || defined(BMP) || defined(AUDACIOUS) || defined(INFOPIPE)
|
#if defined(XMMS) || defined(BMP) || defined(AUDACIOUS) || defined(INFOPIPE)
|
||||||
if (info.xmms.thread) {
|
if (info.xmms.thread) {
|
||||||
if (destroy_xmms_thread()!=0)
|
if (destroy_xmms_thread()!=0)
|
||||||
@ -5840,6 +5844,10 @@ void clean_up(void)
|
|||||||
{
|
{
|
||||||
//lock_all_threads();
|
//lock_all_threads();
|
||||||
threads_runnable++;
|
threads_runnable++;
|
||||||
|
if (info.cpu_usage) {
|
||||||
|
free(info.cpu_usage);
|
||||||
|
info.cpu_usage = NULL;
|
||||||
|
}
|
||||||
#ifdef X11
|
#ifdef X11
|
||||||
#ifdef XDBE
|
#ifdef XDBE
|
||||||
if (use_xdbe) {
|
if (use_xdbe) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user