padtemplate: Constructors are all nullable as they check the template name
[platform/upstream/gstreamer.git] / gst / gstminiobject.h
index 736e7b4..cfd7562 100644 (file)
@@ -235,6 +235,10 @@ GST_API
 void            gst_mini_object_unref          (GstMiniObject *mini_object);
 
 GST_API
+void        gst_clear_mini_object (GstMiniObject **object_ptr);
+#define     gst_clear_mini_object(object_ptr) g_clear_pointer ((object_ptr), gst_mini_object_unref)
+
+GST_API
 void            gst_mini_object_weak_ref        (GstMiniObject *object,
                                                 GstMiniObjectNotify notify,
                                                 gpointer data);