mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
query: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
e190ff16cc
commit
f343d01f10
1 changed files with 3 additions and 3 deletions
|
@ -200,7 +200,7 @@ _gst_query_free (GstQuery * query)
|
||||||
memset (query, 0xff, sizeof (GstQueryImpl));
|
memset (query, 0xff, sizeof (GstQueryImpl));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
g_slice_free1 (sizeof (GstQueryImpl), query);
|
g_free (query);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstQuery *
|
static GstQuery *
|
||||||
|
@ -674,7 +674,7 @@ gst_query_new_custom (GstQueryType type, GstStructure * structure)
|
||||||
{
|
{
|
||||||
GstQueryImpl *query;
|
GstQueryImpl *query;
|
||||||
|
|
||||||
query = g_slice_new0 (GstQueryImpl);
|
query = g_new0 (GstQueryImpl, 1);
|
||||||
|
|
||||||
GST_DEBUG ("creating new query %p %s", query, gst_query_type_get_name (type));
|
GST_DEBUG ("creating new query %p %s", query, gst_query_type_get_name (type));
|
||||||
|
|
||||||
|
@ -697,7 +697,7 @@ gst_query_new_custom (GstQueryType type, GstStructure * structure)
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
had_parent:
|
had_parent:
|
||||||
{
|
{
|
||||||
g_slice_free1 (sizeof (GstQueryImpl), query);
|
g_free (query);
|
||||||
g_warning ("structure is already owned by another object");
|
g_warning ("structure is already owned by another object");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue