gstfunnel: avoid access of freed pad
[platform/upstream/gstreamer.git] / gst / gstpadtemplate.h
index bc2bcee..90f9b25 100644 (file)
@@ -126,6 +126,7 @@ struct _GstPadTemplate {
   GstPadPresence   presence;
   GstCaps        *caps;
 
+  /*< private >*/
   gpointer _gst_reserved[GST_PADDING];
 };
 
@@ -135,10 +136,11 @@ struct _GstPadTemplateClass {
   /* signal callbacks */
   void (*pad_created)  (GstPadTemplate *templ, GstPad *pad);
 
+  /*< private >*/
   gpointer _gst_reserved[GST_PADDING];
 };
 
-/** 
+/**
  * GstStaticPadTemplate:
  * @name_template: the name of the template
  * @direction: the direction of the template
@@ -178,7 +180,7 @@ GType                       gst_static_pad_template_get_type        (void);
 
 GstPadTemplate*                gst_pad_template_new                    (const gchar *name_template,
                                                                 GstPadDirection direction, GstPadPresence presence,
-                                                                GstCaps *caps);
+                                                                GstCaps *caps) G_GNUC_MALLOC;
 
 GstPadTemplate *       gst_static_pad_template_get             (GstStaticPadTemplate *pad_template);
 GstCaps*               gst_static_pad_template_get_caps        (GstStaticPadTemplate *templ);