diff --git a/ChangeLog b/ChangeLog index 1942816742..822ee9b11f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-10 Jan Schmidt + + * gst/playback/gstplaybin.c: (gen_audio_element): + Don't leak an autoaudiosink/alsasink when we generate + a new audio element. (old code, I guess) + 2006-01-10 Michael Smith * gst/audiorate/gstaudiorate.c: (gst_audio_rate_setcaps): diff --git a/gst/playback/gstplaybin.c b/gst/playback/gstplaybin.c index 733c981ebd..3bd6a49590 100644 --- a/gst/playback/gstplaybin.c +++ b/gst/playback/gstplaybin.c @@ -564,10 +564,6 @@ gen_audio_element (GstPlayBin * play_bin) (_("Both autoaudiosink and alsasink elements are missing.")), (NULL)); return NULL; } - sink = gst_element_factory_make ("alsasink", "audiosink"); - if (sink == NULL) { - g_warning ("could not create autoaudiosink element"); - } play_bin->audio_sink = GST_ELEMENT (gst_object_ref (sink)); }