element: Enforce that elements created by gst_element_factory_create/make() are floating
[platform/upstream/gstreamer.git] / gst / gststructure.h
index e366fea..8e6b972 100644 (file)
@@ -134,6 +134,10 @@ GST_API
 void                  gst_structure_free                 (GstStructure        * structure);
 
 GST_API
+void                  gst_clear_structure                (GstStructure **structure_ptr);
+#define               gst_clear_structure(structure_ptr) g_clear_pointer ((structure_ptr), gst_structure_free)
+
+GST_API
 const gchar *         gst_structure_get_name             (const GstStructure  * structure);
 
 GST_API