summaryrefslogtreecommitdiffstats
path: root/ext/gdk_pixbuf/gstgdkpixbuf.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2004-02-03 22:07:24 +0000
committerBenjamin Otte <otte@gnome.org>2004-02-03 22:07:24 +0000
commitaacfb9b993cd1668b564bdcd55eabcc6967ddbb8 (patch)
treee05abb70aa16f85dfc1ab8607eb7385e60503d84 /ext/gdk_pixbuf/gstgdkpixbuf.c
parent7340549ab33d623a6d4f02bb6b24b6d0c2161315 (diff)
fix memleaks shown by gst-typefind
Original commit message from CVS: 2004-02-03 Benjamin Otte <in7y118@public.uni-hamburg.de> * ext/gdk_pixbuf/gstgdkpixbuf.c: (plugin_init): * gst/typefind/gsttypefindfunctions.c: fix memleaks shown by gst-typefind
Diffstat (limited to 'ext/gdk_pixbuf/gstgdkpixbuf.c')
-rw-r--r--ext/gdk_pixbuf/gstgdkpixbuf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/gdk_pixbuf/gstgdkpixbuf.c b/ext/gdk_pixbuf/gstgdkpixbuf.c
index a3b643db..ca1e36b9 100644
--- a/ext/gdk_pixbuf/gstgdkpixbuf.c
+++ b/ext/gdk_pixbuf/gstgdkpixbuf.c
@@ -431,12 +431,16 @@ gst_gdk_pixbuf_type_find (GstTypeFind *tf, gpointer ignore)
static gboolean
plugin_init (GstPlugin *plugin)
{
+ GstCaps *caps;
+
if (!gst_element_register (plugin, "gdkpixbufdec", GST_RANK_NONE, GST_TYPE_GDK_PIXBUF))
return FALSE;
+ caps = GST_CAPS_ANY;
gst_type_find_register (plugin, "image/*", GST_RANK_MARGINAL,
gst_gdk_pixbuf_type_find, NULL,
- gst_caps_copy(GST_CAPS_ANY), NULL);
+ caps, NULL);
+ gst_caps_free (caps);
/* plugin initialisation succeeded */
return TRUE;