mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
message: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
976861a07a
commit
9dd70085f1
1 changed files with 4 additions and 4 deletions
|
@ -223,7 +223,7 @@ _gst_message_free (GstMessage * message)
|
||||||
memset (message, 0xff, sizeof (GstMessageImpl));
|
memset (message, 0xff, sizeof (GstMessageImpl));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
g_slice_free1 (sizeof (GstMessageImpl), message);
|
g_free (message);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -240,7 +240,7 @@ _gst_message_copy (GstMessage * message)
|
||||||
GST_MESSAGE_TYPE_NAME (message),
|
GST_MESSAGE_TYPE_NAME (message),
|
||||||
GST_OBJECT_NAME (GST_MESSAGE_SRC (message)));
|
GST_OBJECT_NAME (GST_MESSAGE_SRC (message)));
|
||||||
|
|
||||||
copy = g_slice_new0 (GstMessageImpl);
|
copy = g_new0 (GstMessageImpl, 1);
|
||||||
|
|
||||||
gst_message_init (copy, GST_MESSAGE_TYPE (message),
|
gst_message_init (copy, GST_MESSAGE_TYPE (message),
|
||||||
GST_MESSAGE_SRC (message));
|
GST_MESSAGE_SRC (message));
|
||||||
|
@ -299,7 +299,7 @@ gst_message_new_custom (GstMessageType type, GstObject * src,
|
||||||
{
|
{
|
||||||
GstMessageImpl *message;
|
GstMessageImpl *message;
|
||||||
|
|
||||||
message = g_slice_new0 (GstMessageImpl);
|
message = g_new0 (GstMessageImpl, 1);
|
||||||
|
|
||||||
GST_CAT_LOG (GST_CAT_MESSAGE, "source %s: creating new message %p %s",
|
GST_CAT_LOG (GST_CAT_MESSAGE, "source %s: creating new message %p %s",
|
||||||
(src ? GST_OBJECT_NAME (src) : "NULL"), message,
|
(src ? GST_OBJECT_NAME (src) : "NULL"), message,
|
||||||
|
@ -320,7 +320,7 @@ gst_message_new_custom (GstMessageType type, GstObject * src,
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
had_parent:
|
had_parent:
|
||||||
{
|
{
|
||||||
g_slice_free1 (sizeof (GstMessageImpl), message);
|
g_free (message);
|
||||||
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