From e1fcfeab25f58a5ee81e0087a80d186e1efc0313 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 5 Mar 2007 18:43:29 +0000 Subject: [PATCH] ext/esd/esdsink.c: Unref static pad template after using it. Original commit message from CVS: * ext/esd/esdsink.c: (gst_esdsink_open): Unref static pad template after using it. --- ChangeLog | 5 +++++ ext/esd/esdsink.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1ac0c9248c..50aec5880a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-05 Jan Schmidt + + * ext/esd/esdsink.c: (gst_esdsink_open): + Unref static pad template after using it. + 2007-03-05 Jan Schmidt * ext/gconf/gstswitchsink.c: (gst_switch_sink_dispose), diff --git a/ext/esd/esdsink.c b/ext/esd/esdsink.c index 3946b301dd..d46af07bc8 100644 --- a/ext/esd/esdsink.c +++ b/ext/esd/esdsink.c @@ -240,6 +240,7 @@ gst_esdsink_open (GstAudioSink * asink) pad_template = gst_static_pad_template_get (&sink_factory); esdsink->cur_caps = gst_caps_copy (gst_pad_template_get_caps (pad_template)); + gst_object_unref (pad_template); for (i = 0; i < esdsink->cur_caps->structs->len; i++) { GstStructure *s;