1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 09:44:04 +00:00

Fix a leak in mpd.c (refcount fail)

This commit is contained in:
Pavel Labath 2010-03-18 21:31:18 +01:00
parent b93fced933
commit c3f28e192a

View File

@ -81,9 +81,7 @@ int mpd_set_port(const char *port)
void init_mpd(void)
{
if (!(refcount++)) /* first client */
memset(&mpd_info, 0, sizeof(struct mpd_s));
refcount++;
memset(&mpd_info, 0, sizeof(mpd_info));
}
struct mpd_s *mpd_get_info(void)