Code

gidle: free all objects in mpd_glib_free()
authorMax Kellermann <max@duempel.org>
Sat, 10 Oct 2009 14:36:30 +0000 (16:36 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 10 Oct 2009 14:36:30 +0000 (16:36 +0200)
The mpd_parser object was not freed, and neither was the
mpd_glib_source object.

src/gidle.c

index 6f149a5292cb3b3f3b7624c55427914ff1532b8b..16901679e84bd9d822f5e558ed34cfd249bc5597 100644 (file)
@@ -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