2005-08-24 Wim Taymans <wim@fluendo.com>
+ * ext/vorbis/vorbisenc.c: (gst_vorbisenc_init),
+ (gst_vorbisenc_change_state):
+ Stop leaking taglists.
+
+2005-08-24 Wim Taymans <wim@fluendo.com>
+
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_src_query),
(gst_ogg_pad_event), (gst_ogg_demux_factory_filter),
(gst_ogg_pad_submit_packet), (gst_ogg_chain_new),
vorbisenc->setup = FALSE;
vorbisenc->eos = FALSE;
vorbisenc->header_sent = FALSE;
-
- vorbisenc->tags = gst_tag_list_new ();
}
switch (transition) {
case GST_STATE_NULL_TO_READY:
+ vorbisenc->tags = gst_tag_list_new ();
+ break;
case GST_STATE_READY_TO_PAUSED:
vorbisenc->eos = FALSE;
break;
case GST_STATE_PAUSED_TO_READY:
vorbisenc->setup = FALSE;
vorbisenc->header_sent = FALSE;
- gst_tag_list_free (vorbisenc->tags);
- vorbisenc->tags = gst_tag_list_new ();
break;
case GST_STATE_READY_TO_NULL:
+ gst_tag_list_free (vorbisenc->tags);
+ vorbisenc->tags = NULL;
default:
break;
}