From: Max Kellermann Date: Sat, 10 Oct 2009 14:36:30 +0000 (+0200) Subject: gidle: free all objects in mpd_glib_free() X-Git-Tag: release-0.16~140 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=06478d7c9c3ec033755c55a32ef80ee131ee3e42;p=ncmpc.git gidle: free all objects in mpd_glib_free() The mpd_parser object was not freed, and neither was the mpd_glib_source object. --- diff --git a/src/gidle.c b/src/gidle.c index 6f149a5..1690167 100644 --- a/src/gidle.c +++ b/src/gidle.c @@ -92,6 +92,9 @@ mpd_glib_free(struct mpd_glib_source *source) g_source_remove(source->id); g_io_channel_unref(source->channel); + + mpd_parser_free(source->parser); + g_free(source); } static void