wildmidi: free the adapter
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 31 Aug 2009 16:34:03 +0000 (18:34 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 31 Aug 2009 16:48:04 +0000 (18:48 +0200)
ext/timidity/gstwildmidi.c

index 2a9ed28d7969a55917a769b07b2384e20b3e2165..bd541013a01b1257c100a6c45ca7f88783bf4aa7 100644 (file)
@@ -290,6 +290,12 @@ gst_wildmidi_init (GstWildmidi * filter, GstWildmidiClass * g_class)
 static void
 gst_wildmidi_finalize (GObject * object)
 {
+  GstWildmidi *wildmidi;
+
+  wildmidi = GST_WILDMIDI (object);
+
+  g_object_unref (wildmidi->adapter);
+
   G_OBJECT_CLASS (parent_class)->finalize (object);
 }