1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

fix memory leak in mpd introduced in rev 1.3, sf patch 1319461 (1024 bytes per update when mpd in "stopped" or "unknown" state, 1024 when changing from play to "stop")

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@349 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Johannes Winkelmann 2005-10-16 15:32:33 +00:00
parent 5b5a419bd0
commit 03cc602812

View File

@ -72,7 +72,6 @@ void update_mpd()
current_info->mpd.progress = 0;
current_info->mpd.elapsed = 0;
current_info->mpd.length = 0;
current_info->mpd.track = 0;
return;
}
current_info->mpd.volume = status->volume;
@ -88,7 +87,6 @@ void update_mpd()
current_info->mpd.progress = 0;
current_info->mpd.elapsed = 0;
current_info->mpd.length = 0;
current_info->mpd.track = 0;
if (current_info->mpd.artist == NULL)
current_info->mpd.artist =
malloc(TEXT_BUFFER_SIZE);
@ -118,7 +116,6 @@ void update_mpd()
current_info->mpd.progress = 0;
current_info->mpd.elapsed = 0;
current_info->mpd.length = 0;
current_info->mpd.track = 0;
if (current_info->mpd.artist == NULL)
current_info->mpd.artist =
malloc(TEXT_BUFFER_SIZE);