mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
caps, capsfeatures: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
7d58554f4c
commit
76c8a619f9
2 changed files with 4 additions and 4 deletions
|
@ -222,7 +222,7 @@ _gst_caps_free (GstCaps * caps)
|
||||||
memset (caps, 0xff, sizeof (GstCapsImpl));
|
memset (caps, 0xff, sizeof (GstCapsImpl));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
g_slice_free1 (sizeof (GstCapsImpl), caps);
|
g_free (caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -255,7 +255,7 @@ gst_caps_new_empty (void)
|
||||||
{
|
{
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
caps = (GstCaps *) g_slice_new (GstCapsImpl);
|
caps = (GstCaps *) g_new (GstCapsImpl, 1);
|
||||||
|
|
||||||
gst_caps_init (caps);
|
gst_caps_init (caps);
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,7 @@ gst_caps_features_new_empty (void)
|
||||||
{
|
{
|
||||||
GstCapsFeatures *features;
|
GstCapsFeatures *features;
|
||||||
|
|
||||||
features = g_slice_new (GstCapsFeatures);
|
features = g_new (GstCapsFeatures, 1);
|
||||||
features->type = _gst_caps_features_type;
|
features->type = _gst_caps_features_type;
|
||||||
features->parent_refcount = NULL;
|
features->parent_refcount = NULL;
|
||||||
features->array = g_array_new (FALSE, FALSE, sizeof (GQuark));
|
features->array = g_array_new (FALSE, FALSE, sizeof (GQuark));
|
||||||
|
@ -431,7 +431,7 @@ gst_caps_features_free (GstCapsFeatures * features)
|
||||||
#endif
|
#endif
|
||||||
GST_TRACE ("free caps features %p", features);
|
GST_TRACE ("free caps features %p", features);
|
||||||
|
|
||||||
g_slice_free (GstCapsFeatures, features);
|
g_free (features);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue